Script closes itself

10/22/2012 17:39 Gamesshit#1
Hi.
Everytime I start my Script and it automatically exits.
Here is my Script :
Code:
Hotkeyset("F4","Go")
Func Go()
while 1
MouseClick ("left",733,457,3,1)
sleep (500) 
Mouseclick("left",592,180,3,1)
sleep (500)
MouseClick("left",986,11,3,1)
sleep (500) 
MouseClick("left",722,460,3,1)
sleep (500) 


   wEnd
EndFunc

Hotkeyset("F6", "_Ende")
Func _Ende()
   
 Exit
EndFunc
Hope you can help me .
And , it doesnt work with the Hotkeys can someone help me with this?
10/22/2012 17:44 H@CT0R#2
use
Code:
Hotkeyset("{F4}","Go")
Hotkeyset("{F6}", "_Ende")

Func Go()
MouseClick ("left",733,457,3,1)
sleep (500) 
Mouseclick("left",592,180,3,1)
sleep (500)
MouseClick("left",986,11,3,1)
sleep (500) 
MouseClick("left",722,460,3,1)
sleep (500) 
EndFunc

Func _Ende()
 Exit
EndFunc

While 1
   Sleep(10)
WEnd
10/22/2012 17:47 Gamesshit#3
The Hotkeys wont work o.O
10/22/2012 18:13 Jonas_93#4
change

Hotkeyset("F4","Go")
Hotkeyset("F6", "_Ende")

to

Hotkeyset("{F4}","Go")
Hotkeyset("{F6}", "_Ende")