AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pause

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
hakmir
Guest





PostPosted: Sat Aug 09, 2008 4:56 am    Post subject: pause Reply with quote

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 Laughing
Thanks a lot for your helps
Back to top
Krogdor



Joined: 18 Apr 2008
Posts: 1145
Location: The Interwebs

PostPosted: Sat Aug 09, 2008 5:00 am    Post subject: Re: pause Reply with quote

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:
Code:
Suspend, On


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
Code:
Suspend, On
Back to top
View user's profile Send private message AIM Address
hakmir
Guest





PostPosted: Sat Aug 09, 2008 5:12 am    Post subject: pause Reply with quote

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





PostPosted: Sat Aug 09, 2008 5:15 am    Post subject: pause Reply with quote

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

PostPosted: Sat Aug 09, 2008 5:18 am    Post subject: Re: pause Reply with quote

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
View user's profile Send private message Visit poster's website
hakmir
Guest





PostPosted: Sat Aug 09, 2008 5:21 am    Post subject: pause Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group