#include HotKeySet("{ESC}", "Test") Local $hGUI = GUICreate("Example", 300, 200) Local $idButton = GUICtrlCreateButton("Run button", 0, 0, 85, 25) GUISetState(@SW_SHOW, $hGUI)
While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $idButton GUICtrlSetPos($idButton, 0, 0,0,0) EndSwitch WEnd Func Test() GUICtrlSetPos($idButton, 0, 0,85,25) EndFunc
|