Disciples Posted February 3, 2009 Share Posted February 3, 2009 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. Link to comment Share on other sites More sharing options...
muncherw Posted February 3, 2009 Share Posted February 3, 2009 (edited) 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 February 3, 2009 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] Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 3, 2009 Share Posted February 3, 2009 Nothing happens because the func is empty, you probably wanted something like: Func Start() $ON = Not $ON EndFunc .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Disciples Posted February 3, 2009 Author Share Posted February 3, 2009 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! 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