Sign in to follow this  
Followers 0
Corey7270

Loop mouse click script wont work

3 posts in this topic

#1 ·  Posted (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 by Corey7270

Share this post


Link to post
Share on other sites



you have 2 Func called MyExit()

get rid of 1 of them

eg: these lines of code

Func MyExit()

Exit

EndFunc

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0