Jump to content

how does the hotkey thing work


Recommended Posts

simpel question how does the hotkey thing work sow if you press that it wil loop something until youve pressed the hotkey again i know already how the loop funtoin works :D

thx

Matthy

Hotkey pause is probably one of the most repeatedly asked questions in the support forum. Do a little search and you will see the many examples of this.

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

  • Moderators

The helpfile explains it pretty good detail, it doesn't loop unless you program it too. Look at the _TogglePause() example on how they used While/WEnd example to keep it in a 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

usually its controlled by varibles that change based on their current state

Hotkeyset("{HOME}", "TogglePause")

While $on = 1
;;Do Whatever
Wend

Func TogglePause()
If $on= 1 Then 
$on = 0
Endif
If $on=0 Then
$on=1
Endif
Endfunc
Link to comment
Share on other sites

usually its controlled by varibles that change based on their current state

Hotkeyset("{HOME}", "TogglePause")

While $on = 1
;;Do Whatever
Wend

Func TogglePause()
If $on= 1 Then 
$on = 0
Endif
If $on=0 Then
$on=1
Endif
Endfunc
you might want to test your code before posting...

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...