ZaraxZ Posted December 14, 2006 Share Posted December 14, 2006 (edited) Hi! I'm making a script to spamm the left mouse button. CODEMouseClick("left"," "," ","9999999999999") But i want a start and a pause button too. Anyone can help me?? Start button: f3 stop: f4 exit: f12 Please help me! Edited December 14, 2006 by ZaraxZ Link to comment Share on other sites More sharing options...
matrix200 Posted December 14, 2006 Share Posted December 14, 2006 Could you be a little more specific? Do you want to send F3 /F4 and so on key pressed event? Or do you want to create a gui with buttons etc? Link to comment Share on other sites More sharing options...
ZaraxZ Posted December 14, 2006 Author Share Posted December 14, 2006 Could you be a little more specific?Do you want to send F3 /F4 and so on key pressed event?Or do you want to create a gui with buttons etc?No i dont need a gui. I just want my computer to click the left mouse button when i click the F3 button and pause when i click the F4 button And exit the scritp when i click the f12 button. Link to comment Share on other sites More sharing options...
matrix200 Posted December 14, 2006 Share Posted December 14, 2006 Check out HotKeySet ( "key" [, "function"] ) and Send ( "keys" [, flag] ) functions in the AutoIt help. I think that should do the trick. Link to comment Share on other sites More sharing options...
ZaraxZ Posted December 14, 2006 Author Share Posted December 14, 2006 I did but i still cant figure it out Cant some one help me write the script? Link to comment Share on other sites More sharing options...
Stumpii Posted December 14, 2006 Share Posted December 14, 2006 I did but i still cant figure it out Cant some one help me write the script?matrix200 has given you everything you need for the script. If you cannot be bothered to look at the help you have been given, why should anyone be bothered to write the script for you?What part of the HotKeySet example do you not understand? “Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity. Link to comment Share on other sites More sharing options...
ZaraxZ Posted December 14, 2006 Author Share Posted December 14, 2006 I dont undersatnd how to do this... Well thanks for the help.... Link to comment Share on other sites More sharing options...
Nebieboy Posted December 14, 2006 Share Posted December 14, 2006 dude im new here also, however i figured out alot of stuff search is a usful tool on all forums, the help file is packed with assistance and the be honest you cant come and expect some1 to give their free time to write it for you. especially while u only have a small amount of posts without contributing your not going to get alot support wanting the pros to write it for you, if you posted a script that you have at least "attempted" to get to work you might get somebody notice an obvous error who will help you, but writing it for you cannot be expected. Link to comment Share on other sites More sharing options...
locomaestro Posted December 15, 2006 Share Posted December 15, 2006 #include <Misc.au3> HotKeySet("{f3}","start") Func start() while 1 $where = MouseGetPos() MouseClick("left",$where[0],$where[1],1,1) sleep(25) if _IsPressed(73) then ExitLoop if _IsPressed("7a") then exit 0 WEnd EndFunc while 1 Sleep(1) WEnd here is the code that should get what you want and you can do f12 because that button is reserved for windows so i did f11 , next time try to look in the forum ppl wont do your scripts for you they ll help you but they wont do them for you. good luck 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