InjkttxD 0 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 Share this post Link to post Share on other sites
kaotkbliss 146 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 010101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110011011010010110011100100001My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueekWe're gonna need another Timmy! Share this post Link to post Share on other sites
LurchMan 2 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. Share this post Link to post Share on other sites
InjkttxD 0 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. Share this post Link to post Share on other sites