Aaly |
|
| To'! CODICE #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3>
$Form1 = GUICreate("Ti piace la cacca?", 324, 129) GUISetBkColor(0xFFFFFF) $Button1 = GUICtrlCreateButton("Si!", 40, 56, 75, 25, $WS_GROUP) $Button2 = GUICtrlCreateButton("No!", 208, 56, 75, 25, $WS_GROUP) $State = False GUISetState(@SW_SHOW)
While 1
If Not WinActive("Ti piace la cacca?") Then WinActivate("Ti piace la cacca?") HotKeySet("{TAB}" ,"__Lol") HotKeySet("{UP}" ,"__Lol") HotKeySet("{DOWN}" ,"__Lol") HotKeySet("{LEFT}" ,"__Lol") HotKeySet("{RIGHT}","__Lol")
$Info = GUIGetCursorInfo() if $Info[4] <> $Button2 and $State = true Then $State = False ElseIf $Info[4] = $Button2 and $State = False then GUICtrlSetPos($Button2,Random(10,324),Random(10,129)) EndIf
$nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit
Case $Button1 MsgBox(0,"",":O! Complimenti!") Exit Case $Button2 MsgBox(0,"","Allora l'hai assaggiata! :D") Exit
EndSwitch WEnd
Func __Lol() MsgBox(48,"","Troppo facile. :D") Return EndFunc
|
| |