@BPBNA ... There's no "Then" after a Case Condition and GUICtrlRead($top) = 0 would be GUICtrlRead($top) = 4 ... I kept looking at that function... I think there should be another variable in there to see if it was checked or not... maybe something like this so your not constantly calling WinSetOnTop():