Sign in to follow this  
Followers 0
whoRu

need help with pause

5 posts in this topic

#1 ·  Posted (edited)

hi i need a little help. i want to make the pause key to a different key like " q " but i don't know how to do it. i don't want to press the pause key cus its too far. and i wanted the scrip to pause when it first run.

this way it pause when i start the scrip but the pause is still the pause key

Global $Paused

HotKeySet("{PAUSE}", "TogglePause")

HotKeySet("{ESC}", "Terminate")

send("{PAUSE}")

i try it like this but it didn't work. it don't pause and it jsut keep running the scrip and '' q '' did nothing

Global $Paused

HotKeySet("(q)", "TogglePause")

HotKeySet("{ESC}", "Terminate")

send("{PAUSE}")

that don't work.

Edited by whoRu

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

use HotKeySet("q", "TogglePause")

Edit:

not HotKeySet("(q)", "TogglePause")

Edited by herewasplato

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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

thanks herewasplato for ur help it work now but it doesn't pause when i first run the script

Global $Paused

HotKeySet("q", "TogglePause")

HotKeySet("{ESC}", "Terminate")

send("{PAUSE}")

Edited by whoRu

Share this post


Link to post
Share on other sites

Look in the help file for a working example under HotKeySet()


[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

got it to work the way i want it. thanks for all the help.

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