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 

how to assign hotkey

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





PostPosted: Sun Oct 12, 2008 3:53 am    Post subject: how to assign hotkey Reply with quote

the following script doesn't work. how do I go about assigning a hotkey to this script.

#z::Run
Process, Wait, FineReader.exe
Process, Close, FineReader.exe

below script works though
----
Process, Wait, FineReader.exe
Process, Close, FineReader.exe
----
Back to top
Carlol



Joined: 14 Aug 2006
Posts: 163
Location: CPH

PostPosted: Sun Oct 12, 2008 4:46 am    Post subject: Reply with quote

Try something like this:

Code:
#z::
Run, Process, Wait, FineReader.exe
Run, Process, Close, FineReader.exe
Return


Good luck to you Razz
Back to top
View user's profile Send private message
Carlol



Joined: 14 Aug 2006
Posts: 163
Location: CPH

PostPosted: Sun Oct 12, 2008 4:49 am    Post subject: Reply with quote

As an example:

Code:
#!n::
Run, Notepad
WinWait, Untitled - Notepad
Winshow, Untitled - Notepad
Winactivate, Untitled - Notepad
Return


Is what I use to start Notepad Very Happy
Back to top
View user's profile Send private message
amie
Guest





PostPosted: Mon Oct 13, 2008 3:15 am    Post subject: Reply with quote

thanks
Back to top
Sivvy



Joined: 21 Jul 2008
Posts: 726
Location: Calgary, AB, Canada

PostPosted: Tue Oct 14, 2008 3:33 pm    Post subject: Reply with quote

Code:
#z::
Run, Process, Wait, FineReader.exe
Run, Process, Close, FineReader.exe
Return

Process is a separate command. You can't really run it.
I assume the blank "Run" you have in there is a placeholder that you plan to actually fill out after.
Back to top
View user's profile Send private message
Display posts from previous:   
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