#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Local $y_1 = 0
Local $y_2 = 450
GUICreate("",500,500)
Local $idButton_1 = GUICtrlCreateButton("/\", 0, 0, 500, 25)
Local $idButton_2 = GUICtrlCreateButton("\/", 0, 450,500 , 25)
GUISetState(@SW_SHOW)
While 1
Switch GUIGetMsg()
Case $idButton_1
$y_1 = $y_1 + 10
GUICtrlSetPos($idButton_1,0,$y_1)
Case $idButton_2
$y_2 = $y_2 - 10
GUICtrlSetPos($idButton_2,0,$y_2)
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
|