Page 1 of 1

Launching App with Arguments? (LuaMacros)

Posted: 07 Oct 2018, 23:20
by Misled
I am trying to get discord to launch but the shortcut requires this argument
--processstart Discord.exe

The entire line is C:\Users\misled\AppData\Local\Discord\Update.exe --processStart Discord.exe

I tried this [[C:\\Users\\misled\\AppData\\Local\\Discord\\Update.exe -processStart Discord.exe"]]

but it fails. What can i do?
Thank you,

Re: Launching App with Arguments? (LuaMacros)

Posted: 08 Oct 2018, 04:13
by luiwingkin
You may try this.

program = "C:\Users\misled\AppData\Local\Discord\Update.exe"
command = "--processStart"
arg = "Discord.exe"
c = program.." \""..command.."\" \""..arg
lmc_spawn(c)

I have shared the explanation in:

viewtopic.php?f=3&t=595&sid=9e34a92edfe ... c869e46cfb

Hope it helps.

Re: Launching App with Arguments? (LuaMacros)

Posted: 09 Oct 2018, 00:14
by Misled
Thank you it works :D