NWz Posted January 31, 2007 Share Posted January 31, 2007 Hello. Yes I'm new to these forums and I have a problem I ran into. I have making key macros for this other program but I have a problem. Its really hard to stop my macro, I have to give the key a quick stroke for it to stop. (This isn't a problem but some of my friends wanted this program) Heres an example of what I need help with: I press 1 to activate {a} being pressed. It works really good but when I want to stop it I run into a problem. I keep having to try my best to stop it. (Its took me as many as 20 trys to get the macro to stop) Could someone post an example script or tell me what the problem could be? If not of those two, atleast tell me if theres some sort of delay that can fix this. Thanks. Link to comment Share on other sites More sharing options...
Gibbo Posted January 31, 2007 Share Posted January 31, 2007 I press 1 to activate {a} being pressed. It works really good but when I want to stop it I run into a problem. I keep having to try my best to stop it. (Its took me as many as 20 trys to get the macro to stop)Sounds like you might need to put in a sleep(number) line somewhere to let your computer/script take a breath. Link to comment Share on other sites More sharing options...
NWz Posted January 31, 2007 Author Share Posted January 31, 2007 Oh ok, where would be the best place to put it in a function like: Func KPress3() $UnPaused = NOT $UnPaused While $UnPaused Send("{D}") WEnd EndFunc Like inbetween the While $UnPaused and the Send? Link to comment Share on other sites More sharing options...
someone Posted January 31, 2007 Share Posted January 31, 2007 (edited) Oh ok, where would be the best place to put it in a function like: Func KPress3() $UnPaused = NOT $UnPaused While $UnPaused Send("{D}") WEnd EndFuncoÝ÷ ظ¤z)ÛzÜz{ayhbí7éIÏjëu©Ý¶zwnË«{ú®¢×+"³Z¶Ø^éi~)^«¢±è´§²IëSjG$jØhÂØ^±Êâ¦Ø¬²ÚîrÛ«yÛaz®±çîËb¢x¬Û(ÂwîËb¢|!Wézk¢ Ú+"¬!W¿ÁéÝ)-ën²IèÂ'ò¢éÞy֧ʥ¦éÝz»-jwbayìZ^2Zh£]4¦-³}ÚºÚ"µÍÛØ[ ÌÍÔ]ÙYÝÙ^TÙ] ][ÝÞÔUTÑ_I][ÝË ][ÝÕÙÙÛT]ÙI][ÝÊBÝÙ^TÙ] ][ÝÞÑTÐßI][ÝË ][ÝÕZ[]I][ÝÊBÝÙ^TÙ] ][ÝÊÉÌÌÎÙ ][ÝË ][ÝÔÚÝÓYÜØYÙI][ÝÊHÔÚYP[YÎÎÎÈÙHÙÙÜ[HÛÝ[ÛÈHÎÎÎÂÚ[HBÛY L BÑ[ÎÎÎÎÎÎÎÂ[ÈÙÙÛT]ÙJ B ÌÍÔ]ÙYHÕ ÌÍÔ]ÙYÚ[H ÌÍÔ]ÙYÛY L BÛÛ ÌÎNÔØÜÈ ][ÝÔ]ÙY ][ÝÉÌÎNË BÑ[ÛÛ ][ÝÉ][ÝÊB[[Â[ÈZ[]J B^][[Â[ÈÚÝÓYÜØYÙJ BÙÐÞ M ][ÝÉ][ÝË ][ÝÕÈÈHYÜØYÙK][ÝÊB[[ Edited January 31, 2007 by someone While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd Link to comment Share on other sites More sharing options...
AzKay Posted January 31, 2007 Share Posted January 31, 2007 And what exactly is your script? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Shevilie Posted January 31, 2007 Share Posted January 31, 2007 Well add the simple HotKeySet("½","Stop") Func Stop() Exit EndFunc Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit 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