InjkttxD Posted October 6, 2010 Share Posted October 6, 2010 Hey guys, i started using AutoIt today to make a macro program for online games and such. I've managed to get one of the two macros working. I've made an auto rightclicker and that runs and terminates fine. But when i started over and went to use it to make a macro that holds Left or right ctrl down, it'll start, but won't terminate or pause properly. It'll run, and i'll hit the pause or terminate key, and it'll say it's paused but i have to physically push the LCTRL key in to get the macro to stop. Anyways heres the code. Global $Paused HotKeySet("{TAB}", "TogglePause") HotKeySet("{\}", "Terminate") HotKeySet("+!d", "ShowMessage") While 1 Send("{LCTRL down}") WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMessage() MsgBox(25,"","") EndFunc Link to comment Share on other sites More sharing options...
kaotkbliss Posted October 6, 2010 Share Posted October 6, 2010 Hey guys, i started using AutoIt today to make a macro program for online games and such.Here is your answer 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
LurchMan Posted October 6, 2010 Share Posted October 6, 2010 (edited) You might want to take a look at this.Edit: Beat me to it! Edited October 6, 2010 by LurchMan Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end. Link to comment Share on other sites More sharing options...
InjkttxD Posted October 6, 2010 Author Share Posted October 6, 2010 Ahh, sorry didnt see that one . However, technically i'm not asking for help to make a game macro, im just confused as to why the command key is 'sticky' so to speak. It doesnt release even tho i've terminated it. 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