Jump to content
Sign in to follow this  
Dead_Man

first hotkey, whats wrong?

Recommended Posts

Dead_Man

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

Share this post


Link to post
Share on other sites
Cyber

Try with

HotKeySet("{TAB}z", "kill")
Edited 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

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
Simucal

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)

Share this post


Link to post
Share on other sites
Dead_Man

sorry, but main loop? like having while/WEnd around both functions?

Edited by Dead_Man

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
Dead_Man

but i already have thoes in my script

While 1;
        Send("{TAB}")
        Sleep("10")
        Send("{T}")
    WEnd

what will make it stop closing?

Edited by Dead_Man

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
Cyber

Doesn't look right

Edit:

Never mind, you fixed it :whistle:

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

Share this post


Link to post
Share on other sites
Dead_Man

ohhh, now i see, thanks so much :whistle: (just changed it to F5)

Edited by Dead_Man

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.