xeo Posted December 4, 2009 Posted December 4, 2009 Hey I saw This & Im really Interested going on to make advanced apps but as a start i just wanna make 3 apps. 1)An App that has two buttons: Start Stop (or a keybind like alt+ or fnumber) when i start i want the app to make the mouse click realy fast say 30ms untill i hit stop 2)Almost the same as 1. Just want it to keep the mouse click down untill i stop it. I Just started with this but so far i've got this: #include <GUIConstantsEx.au3> Opt('MustDeclareVars', 1) Opt("GUIOnEventMode", 1) TrayTip("Clicker F9 on f10 off, F11 quit.", 8, 16) Opt("SendKeyDelay", 1) #include <misc.au3> Local $YesID, $NoID HotKeySet("{F9}", "Click") HotKeySet("{F10}", "Stop") HotKeySet("{F11}", "Quit") GUICtrlCreateButton("Click", 40, 90, 130, 20) GUICtrlCreateButton("Stop" , 35, 40, 130, 20) GUICtrlCreateButton("Quit" , 30, 35, 130, 20) Func Click() dim $halt = False While 1 MouseClick("primary", 0, 500, 9999) WEnd EndFunc Func Stop() $halt = True EndFunc Func Quit() Exit EndFunc I Dunno Most of it.. I kinda copy pasted to practice and edited with my own Any Advices at all? thanks alot!
AlmarM Posted December 4, 2009 Posted December 4, 2009 (edited) Take a look at the HotKeySet example in the helpfile. I think thats a basic construction of what you mean by "when i start i want the app to make the mouse click realy fast say 30ms, untill i hit stop" Edited December 4, 2009 by AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.
xeo Posted December 4, 2009 Author Posted December 4, 2009 Yeah Exactly! Anything i could read or any advice to make this work?
picea892 Posted December 4, 2009 Posted December 4, 2009 read up on guigetmsg. You need to start a while loop and query if a button was pressed.
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