Is it possible to auto-run script upon double clicking it ?
There was a similar post where someone was told to use the -r paramater but i have no idea what that is
AutoStart script
Re: AutoStart script
Not sure, you need to pick some file extension, associtate it with LuaMacros and somehow forse the -r parameter befroe the file name.
Not sure if it's possible in windows, otherwise I could drop that -r parameter...
Not sure if it's possible in windows, otherwise I could drop that -r parameter...
Petr Medek
LUAmacros author
LUAmacros author
-
- Posts: 4
- Joined: 03 Jun 2017, 17:10
Re: AutoStart script
Thanks for the responseadmin wrote:Not sure, you need to pick some file extension, associtate it with LuaMacros and somehow forse the -r parameter befroe the file name.
Not sure if it's possible in windows, otherwise I could drop that -r parameter...
Before everything, I'd like to thank you for the program its amazing !
Secondly, I made luamacros the default app for lua file extenstions so that double-clicking the file launches the program with the script ready to go (all you need to do is hit run).
what is the -r paramater ? Is there a way to automaticaly run the script apon launching it in luamacros ?
Re: AutoStart script
This is the role of -r parameter - when used it starts the script automatically just after loading (as lumacros argument)
Petr Medek
LUAmacros author
LUAmacros author
-
- Posts: 4
- Joined: 03 Jun 2017, 17:10
Re: AutoStart script
How do I use -r than?admin wrote:This is the role of -r parameter - when used it starts the script automatically just after loading (as lumacros argument)
Re: AutoStart script
From command prompt, not by double clicking to associated file
Petr Medek
LUAmacros author
LUAmacros author
-
- Posts: 4
- Joined: 03 Jun 2017, 17:10
Re: AutoStart script
After a bit of reading in the forum i saw that last night, I was wondering wether I could set code to auto-run on double click.admin wrote:From command prompt, not by double clicking to associated file
Thanks anyhow, keep up the good work !
Re: AutoStart script
Not by double clicking to lua file but to modified luamacros icon.
What you can do is you can create shortcut of luamacros.exe and in the command line parameter you can add "-r name_of_your_lua_file". Then it's executed automatically.
What you can do is you can create shortcut of luamacros.exe and in the command line parameter you can add "-r name_of_your_lua_file". Then it's executed automatically.
Petr Medek
LUAmacros author
LUAmacros author