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 

Add parameter to run command

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



Joined: 13 Aug 2008
Posts: 9

PostPosted: Tue Aug 26, 2008 6:05 pm    Post subject: Add parameter to run command Reply with quote

Run Command doesn't work when I add a parameter.

This works:
Code:
run, C:\MyAHKscript.ahk


This does not:
Code:
run, C:\MyAHKscript.ahk parm1
run, C:\MyAHKscript.ahk "parm1"
Back to top
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 1496

PostPosted: Tue Aug 26, 2008 6:22 pm    Post subject: Reply with quote

Code:
run %A_AhkPath% "c:\MyScript.ahk" "param1" "%param2%"

_________________
My Home Thread
More Common Answers: [1]. It's in the FAQ [2]. Ternary ( a ? b : c ) guide [3]. Post code inside [code][/code] tags !
Back to top
View user's profile Send private message
TotAL_NewB



Joined: 13 Aug 2008
Posts: 9

PostPosted: Tue Aug 26, 2008 6:28 pm    Post subject: Reply with quote

Thanks!

It works brilliantly. I'm trying to implement your advise regarding the multi-threaded scripts. Very Happy
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