Dead_Man Posted July 28, 2006 Share Posted July 28, 2006 (edited) HotKeySet("{TAB}+{Z}", "kill") HotKeySet("{PAUSE}", "TogglePause") Func kill() While 1; Send("{TAB}") Sleep("10") Send("{T}") WEnd EndFunc Func TogglePause() $Paused = Not $Paused While $Paused Sleep(100) ToolTip('Script is "Paused"', 0, 0) WEnd ToolTip("") EndFunc i need these hotkeys to stay a constant instead of having the macro just finish after executed like its running a 2 second command Edited July 28, 2006 by Dead_Man Link to comment Share on other sites More sharing options...
Cyber Posted July 28, 2006 Share Posted July 28, 2006 (edited) Try with HotKeySet("{TAB}z", "kill") Edited July 28, 2006 by Cyber Console Browse: Navigate on the WEB in a textual consoleMultiPing!: Show computer on the lan and/or show the local/remote task, ALL animated!KillaWin: Event executingCryptPage: Crypt your webpage and show only with key Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 28, 2006 Moderators Share Posted July 28, 2006 (edited) HotKeySet("{TAB}Z}", "kill")Doesn't look rightEdit:Never mind, you fixed it Edited July 28, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Simucal Posted July 28, 2006 Share Posted July 28, 2006 You also have no main loop.. so this script will exit immediately if you dont hit one of those hot keys. AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) Link to comment Share on other sites More sharing options...
Dead_Man Posted July 28, 2006 Author Share Posted July 28, 2006 (edited) sorry, but main loop? like having while/WEnd around both functions? Edited July 28, 2006 by Dead_Man Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 28, 2006 Moderators Share Posted July 28, 2006 No... Like the HotKeySet example in the help file has a loop that doesn't do anything under the Hotkeys:HotKeySet("{PAUSE}", "TogglePause") ;~ ====== Start Of Main Loop ====== While 1 Sleep(10000) WEnd ;~ ====== End Of Main Loop ====== Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Dead_Man Posted July 28, 2006 Author Share Posted July 28, 2006 (edited) but i already have thoes in my script While 1; Send("{TAB}") Sleep("10") Send("{T}") WEnd what will make it stop closing? Edited July 28, 2006 by Dead_Man Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 28, 2006 Moderators Share Posted July 28, 2006 but i already have thoes in my script While 1; Send("{TAB}") Sleep("10") Send("{T}") WEnd oÝ÷ ÛZ·¥f¤z+l¶"êº^b¢}ý¶¯y£ Ùh¢¨º¯y©h¢§h[§rبØ^~éܶ*'ÉÞ½êÜjY^véí¨º¶¡¢ÙÊÊ'¢Øb¬²Ú)¦)ඬr¸©µúèìb¶)à¦ëmã Ùh¢§uêíèh¶G²)"Æ¢v)íç±jjezè¾'^wÖÞx"§îËb¢p%²¢}ý¶ØbL¨ºº®¢ÔÀìêºb² "hÂä±ç¦²X¤z+h©É,º'¶è®Ê&z·²Ò£*.®Ç+p¢é]$)¶¬5ç¶âÆØ^û2¢}ý¶IèÂ0Ê°j{m¢Ë²Øº×¢µ«¢+Ù±½°ÀÌØíAÕÍ)!½Ñ-åMÐ ÌäìèÌäì°ÅÕ½Ðí¥±°ÅÕ½Ðì¤)!½Ñ-åMÐ ÅÕ½ÐííAUMôÅÕ½Ðì°ÅÕ½ÐíQ½±AÕÍÅÕ½Ðì¤((íøôôôôôôMÑÉÐ=5¥¸1½½Àôôôôôô)]¡¥±Ä(%M±À ÄÀÀÀÀ¤)]¹(íøôôôôôô¹=5¥¸1½½Àôôôôôô()Õ¹¥±° ¤(%5Í ½à À°ÌäìÌäì°ÌäìÌäì¤(]¡¥±9½ÐÀÌØíAÕÍì(M¹ ÅÕ½ÐííQ õPÅÕ½Ðì¤(M±À ÄÀ¤(]¹)¹Õ¹()Õ¹Q½±AÕÍ ¤(ÀÌØíAÕÍô9½ÐÀÌØíAÕÍ(]¡¥±ÀÌØíAÕÍ(M±À ÄÀÀ¤(Q½½±Q¥À ÌäíMÉ¥ÁÐ¥ÌÅÕ½ÐíAÕÍÅÕ½ÐìÌäì°À°À¤(]¹(Q½½±Q¥À ÅÕ½ÐìÅÕ½Ðì¤)¹Õ¹ Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Cyber Posted July 28, 2006 Share Posted July 28, 2006 Doesn't look rightEdit:Never mind, you fixed it Yes Console Browse: Navigate on the WEB in a textual consoleMultiPing!: Show computer on the lan and/or show the local/remote task, ALL animated!KillaWin: Event executingCryptPage: Crypt your webpage and show only with key Link to comment Share on other sites More sharing options...
Dead_Man Posted July 28, 2006 Author Share Posted July 28, 2006 (edited) ohhh, now i see, thanks so much (just changed it to F5) Edited July 28, 2006 by Dead_Man 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