Hallo leute,
wieso funzt mien Script net?
wieso funzt mien Script net?
Code:
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 113, 95, 193, 125)
$Checkbox1 = GUICtrlCreateCheckbox("AutoAttack", 8, 8, 81, 17)
$Checkbox2 = GUICtrlCreateCheckbox("AutoPotten", 8, 24, 81, 17)
$Checkbox3 = GUICtrlCreateCheckbox("PickUp", 8, 40, 73, 17)
$Button1 = GUICtrlCreateButton("Start", 16, 64, 81, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Checkbox1
Case $Checkbox2
Case $Checkbox3
Case $Button1
start ()
EndSwitch
WEnd
Func start ()
WinActivate("METIN2")
If $Checkbox1=1 Then
While(1)
Send("{Space}")
WEnd
EndIf
If $Checkbox2=1 Then
While(1)
Send("{1}")
Sleep(100)
WEnd
EndIf
If $Checkbox3=1 Then
While(1)
Send("{y}")
Sleep(133)
WEnd
EndIf
EndFunc