Jump to content
Sign in to follow this  
Disciples

Help getting the script started

Recommended Posts

Disciples

HotKeySet("{F4}", "ExitProg") 
HotKeySet("{F5}", "Start") 
 

    Global $ON = False
While (1) 

   Sleep(1000)
   While $ON = True
       Sleep(1000)
MouseClick("left",35,22,2,5000)

WEnd
Wend

Func ExitProg()  
    Exit 0;;Exits the program
EndFunc
Func Start()
EndFunc

It is a bot to have the mouse move to a spot and keep clicking on that spot.

But when I go to get it running, nothing happens if I press f5. But rather if I press f4, it will exit it.

So it is something wrong with the start, I'm just not sure what.

Any help will be greatly appreciated.

Share this post


Link to post
Share on other sites
muncherw

You don't have it set to do anything in the start function. Also you never change the $ON variable. You probably want to do that in the Start function.

Edited by muncherw

Other People's Stuff:Andy Flesner's AutoIt v3: Your Quick Guide[topic="34302"]Locodarwin's ExcelCom_UDF[/topic][topic="61090"]MrCreatorR's Opera Library[/topic]

Share this post


Link to post
Share on other sites
Disciples

You don't have it set to do anything in the start f unction.

Omg I fail. For some reason I didn't catch that.

Thanks a lot!

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  

×