How to open get names of apps and run commands

Announcements, general discussion
Post Reply
PlutoniumMen
Posts: 1
Joined: 13 May 2021, 04:42

How to open get names of apps and run commands

Post by PlutoniumMen » 13 May 2021, 04:50

hello
Im new to LuaMacros so I came here for help :?:
My Question is how I can find names of apps I wanna open like chrome
and how to write it into code so it opens with a press of a button :!:

if (button == string.byte('C')) then lmc_spawn("calc")

elseif (button == string.byte('R')) then print(lmc_get_window_title())

this is what I use but I dont understand how to open something like CoD or Chrome instead of calc
also if someone can explain how I can open websites from LuaMacros

Post Reply