| View previous topic :: View next topic |
| Author |
Message |
hakmir Guest
|
Posted: Sat Aug 09, 2008 4:56 am Post subject: pause |
|
|
Hi, When I start Windows XP I want autohotkey to start at "pause Script". Is it possible? My other question is After I type any hotkey I also want Autohotkey to go "pause Script" automatically. What I am trying to do is I want to activate autohotkey with a button and once I use the hotkey I want it to go back to "pause Script" so I can use the default keyboard. This way I can assign hotkeys to all keyboard buttons and whenever I wanna use hotkeys I can activate with one button and type my hotkey then it goes back to "pause Script" (means my default keyboard).
Is it too complex
Thanks a lot for your helps |
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 1145 Location: The Interwebs
|
Posted: Sat Aug 09, 2008 5:00 am Post subject: Re: pause |
|
|
| hakmir wrote: | | Hi, When I start Windows XP I want autohotkey to start at "pause Script". |
Put the script (or a shortcut to the script) in your startup directory for it to start when Windows starts.
To have the script start in suspend (I think this is what you mean, not pause) status, make the first line of your script:
| Quote: |
My other question is After I type any hotkey I also want Autohotkey to go "pause Script" automatically. |
Before the ending return of the hotkey's routine, add
|
|
| Back to top |
|
 |
hakmir Guest
|
Posted: Sat Aug 09, 2008 5:12 am Post subject: pause |
|
|
Yes actually you are right suspend hotkeys is right. I reboot and it worked. Thanks for that. But How will I suspend it whenever I use a hotkey. Cause I want to go back to suspendhotkeys automatically whenever I use a hotkey. And I want to assign a button to activate and suspendhotkeys.
Lets say when I type "F1" I will activate the hotkeys and lets say I will use a hotkey, after it activates the hotkey I want it to go back to suspend hotkeys so that I can use my default keyboard. |
|
| Back to top |
|
 |
hakmir Guest
|
Posted: Sat Aug 09, 2008 5:15 am Post subject: pause |
|
|
I am trying something like this but it doesn't work
example :
f6::run taskmgr.exe && suspend,on
It means after I open taskmanager I want autohotkey to go back to "Suspendhotkeys" |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Sat Aug 09, 2008 5:18 am Post subject: Re: pause |
|
|
| Code: |
f6::
run taskmgr.exe
suspend,on
Return
|
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
hakmir Guest
|
Posted: Sat Aug 09, 2008 5:21 am Post subject: pause |
|
|
| It worked!!!!!! hahahaha!!!! Thanks a lot engunneer! You are the man! I would probably struggle to solve it whole knight. You saved me. |
|
| Back to top |
|
 |
|