Corey7270 Posted September 29, 2005 Share Posted September 29, 2005 (edited) I have worked on this script to be able to press a key to stop it but cant get it working. It says duplicate function name i have no idea what im doing. ------- HotKeySet("^!x", "MyExit") ... ... Func MyExit() Exit EndFunc While 1 $msg = GUIGetMsg(2) MouseClick("left") MouseClick("left") WEnd ... ... Func MyExit() Exit EndFunc This is the script im trying to get to work can any one tell me how to make it work? or tell me a Tutorial i could look at becuase i dont understand most of this? Edited September 29, 2005 by Corey7270 Link to comment Share on other sites More sharing options...
drak Posted September 29, 2005 Share Posted September 29, 2005 you have 2 Func called MyExit() get rid of 1 of them eg: these lines of code Func MyExit() Exit EndFunc Link to comment Share on other sites More sharing options...
Corey7270 Posted September 30, 2005 Author Share Posted September 30, 2005 Thanks! This is the script now ---------- HotKeySet("^!x", "MyExit") While 1 $msg = GUIGetMsg(2) MouseClick("left") MouseClick("left") WEnd Func MyExit() Exit EndFunc Still dosent seem to work though but getting better! No wait never mind I got it working i forgot to take out the ...'S Thanks! for helping me fix my script. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now