| View previous topic :: View next topic |
| Author |
Message |
mtemp
Joined: 12 May 2009 Posts: 27
|
Posted: Fri Jan 08, 2010 3:43 pm Post subject: Doesn't work: #run xyz.ahk "parameter" |
|
|
Hello,
I have a script which can be opened directly or within another ahk file by using "run":
Run, xyz.ahk
By calling this file from another ahk file I want to run it with a parameter like
Run, xyz.ahk "parameter 1"
Error message:
So, how it is possible to "Run" / open a ahk file within another ahk file with parameters?
carlos |
|
| Back to top |
|
 |
aguy Guest
|
Posted: Fri Jan 08, 2010 3:46 pm Post subject: |
|
|
| remove the quotes i believe |
|
| Back to top |
|
 |
mtemp
Joined: 12 May 2009 Posts: 27
|
|
| Back to top |
|
 |
svi
Joined: 09 Oct 2006 Posts: 236 Location: Finland
|
Posted: Fri Jan 08, 2010 5:05 pm Post subject: |
|
|
I quess you'll have to specify the executable:
| Code: | | Run AutoHotkey.exe xyz.ahk params |
_________________ Pekka Vartto |
|
| Back to top |
|
 |
mtemp
Joined: 12 May 2009 Posts: 27
|
Posted: Fri Jan 08, 2010 5:14 pm Post subject: |
|
|
| svi wrote: | | I quess you'll have to specify the executable:... |
Hmm, without parameters and without authotkey.exe the ahk script will be processed.
But let's have a try...
Wow! That's the solution!
e.g.
| Code: | | Run, autohotkey.exe target.ahk "parameter 1" "para2" "\"with quotation mark" |
target.ahk:
| Code: | | msgbox, %1%`n%2%`n%3% |
Many thanks for your help!! |
|
| Back to top |
|
 |
|