How do i launch an app in foreground?
How do launch an application in the foreground? I am looking to launch kodi and it works but launches it in background. I would like for it to launch in foreground and maximized.
I tried the following commands but they don't work. If I click on the icon with my mouse it works and launches with splash screen and then full screen.
actions.command1 = function ()
os.start("C:\Program Files (x86)\Kodi\kodi.exe");
found a different way to do this and it works.
I assigned a keyboard shortcut to Kodi (ctrl+alt+k) and had the custom run button execute that shortcut. Kodi now starts maximized and with focus.