Hallo Leute,
Ich habe versucht einen Bot zu machen für ein Spiel, aber leider funktioniert die Exit funktion nicht.(F12)Könnte mir einer helfen?
Außerdem wäre eine Bedingung gut, also Fenster XYZ muss offen sein, damit F11 funktioniert, wenn nicht dass eine Nachricht kommt und da steht: Please open GTA_SA.
Mfg
Schake
MsgBox(0,"AFK BOT BY SCHAKE","Press ingame:"&@CRLF&"F10 to test the bot"&@CRLF&"F11 to start the bot"&@CRLF&"F12 to stop the bot")
HotKeySet ("{F10}","test")
func test()
sleep (250)
Send ("tTest successful")
send ("{ENTER}")
EndFunc
HotKeySet ("{F11}","start")
while 1
sleep (5000)
WEnd
func start()
Sleep(250)
send ("/tStarted")
send ("{ENTER}")
sleep (5000)
While 1
Sleep(300000)
send ("t/afkback")
send ("{ENTER}")
WEnd
EndFunc
HotKeySet ("{F12}","stop")
Func stop()
Exit
EndFunc






