Sign in to follow this  
Followers 0
Matthy

how does the hotkey thing work

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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)

Share this post


Link to post
Share on other sites

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.


[center]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.[/center]

Share this post


Link to post
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

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

...how does the hotkey thing work...

...very well, it works very well... :-)

See the help file under HotKeySet. The example is at the bottom of the page.


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

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  
Followers 0