AutoStart script

Documentation. First post is always kind of manual page, being continuously updated by author. Following posts are discussion about the topic.
Post Reply
pitamar531
Posts: 4
Joined: 03 Jun 2017, 17:10

AutoStart script

Post by pitamar531 » 03 Jun 2017, 17:13

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

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: AutoStart script

Post by admin » 05 Jun 2017, 09:00

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...
Petr Medek
LUAmacros author

pitamar531
Posts: 4
Joined: 03 Jun 2017, 17:10

Re: AutoStart script

Post by pitamar531 » 06 Jun 2017, 05:03

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 ?

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: AutoStart script

Post by admin » 06 Jun 2017, 08:17

This is the role of -r parameter - when used it starts the script automatically just after loading (as lumacros argument)
Petr Medek
LUAmacros author

pitamar531
Posts: 4
Joined: 03 Jun 2017, 17:10

Re: AutoStart script

Post by pitamar531 » 06 Jun 2017, 10:15

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?

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: AutoStart script

Post by admin » 07 Jun 2017, 07:48

From command prompt, not by double clicking to associated file
Petr Medek
LUAmacros author

pitamar531
Posts: 4
Joined: 03 Jun 2017, 17:10

Re: AutoStart script

Post by pitamar531 » 07 Jun 2017, 13:14

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 ! :)

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: AutoStart script

Post by admin » 08 Jun 2017, 07:53

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.
Petr Medek
LUAmacros author

Post Reply