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 

executng an AHK script with command line switch????

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



Joined: 11 Jul 2005
Posts: 81

PostPosted: Tue Jan 15, 2008 5:34 pm    Post subject: executng an AHK script with command line switch???? Reply with quote

Is it possible to create a compiled AHK script that will recognize a command line switch that affects its execution?

For instance, I've done some reading about controling winamp with Ahk...

Say I want to assign a command to a programmed key on an xkeys control panel. Instead of creating a seperate exe for each command and assigning it to each key, I'd like to create one exe file called WAC.exe (WinAmpControl). In order to command play, I would assign wac.exe /Play to a button on my xkeys.

I would much prefer to do this rather than assign lengthy key combos to everything, as I'm running short on unused key combos. Wink

On the program I would like to use it with, for each new release, it appears as though I am forced to update 60-70 individual exe files with each release instead of one.

I guess my question is really... if it's possible... is how do I recognize the command line switch for the AHK exe as in this example?

I realize this can be done for launching other apps via AHK with the run and run as command, but reading the switch given to itself during launch???
_________________
Jeff Main
Back to top
View user's profile Send private message
jsmain



Joined: 11 Jul 2005
Posts: 81

PostPosted: Tue Jan 15, 2008 5:59 pm    Post subject: Reply with quote

Oops! I overlooked it in my searches...

I found the answer I long for here...
http://www.autohotkey.com/docs/Scripts.htm#cmd
_________________
Jeff Main
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 679

PostPosted: Tue Jan 15, 2008 6:19 pm    Post subject: Reply with quote

very good i wish every one who posted questions would keep looking also
welcome to ahk
_________________
Read this
Com
Automate IE7 with Tabs
Back to top
View user's profile Send private message
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