Launching App with Arguments? (LuaMacros)

Report application bugs here
Post Reply
Misled
Posts: 2
Joined: 07 Oct 2018, 23:16

Launching App with Arguments? (LuaMacros)

Post by Misled » 07 Oct 2018, 23:20

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,

luiwingkin
Posts: 14
Joined: 06 Feb 2018, 05:23

Re: Launching App with Arguments? (LuaMacros)

Post by luiwingkin » 08 Oct 2018, 04:13

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.

Misled
Posts: 2
Joined: 07 Oct 2018, 23:16

Re: Launching App with Arguments? (LuaMacros)

Post by Misled » 09 Oct 2018, 00:14

Thank you it works :D

Post Reply