Jump to content

Recommended Posts

Posted (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 by Dead_Man
  • Moderators
Posted (edited)

HotKeySet("{TAB}Z}", "kill")

Doesn't look right

Edit:

Never mind, you fixed it :whistle:

Edited 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.

Posted

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)
  • Moderators
Posted

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.

  • Moderators
Posted

but i already have thoes in my script

While 1;
        Send("{TAB}")
        Sleep("10")
        Send("{T}")
    WEnd
oÝ÷ ÛZ·¥f¤z+"êº^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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...