Page 1 of 1

AutoStart script

Posted: 03 Jun 2017, 17:13
by pitamar531
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

Re: AutoStart script

Posted: 05 Jun 2017, 09:00
by admin
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...

Re: AutoStart script

Posted: 06 Jun 2017, 05:03
by pitamar531
admin 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...
Thanks for the response :)
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

Posted: 06 Jun 2017, 08:17
by admin
This is the role of -r parameter - when used it starts the script automatically just after loading (as lumacros argument)

Re: AutoStart script

Posted: 06 Jun 2017, 10:15
by pitamar531
admin wrote:This is the role of -r parameter - when used it starts the script automatically just after loading (as lumacros argument)
How do I use -r than?

Re: AutoStart script

Posted: 07 Jun 2017, 07:48
by admin
From command prompt, not by double clicking to associated file

Re: AutoStart script

Posted: 07 Jun 2017, 13:14
by pitamar531
admin wrote:From command prompt, not by double clicking to associated file
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.
Thanks anyhow, keep up the good work ! :)

Re: AutoStart script

Posted: 08 Jun 2017, 07:53
by admin
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.