unifiedremote / Docs

Official API documentation.
149 stars 33 forks source link

Run remote #20

Open mgrenier25 opened 4 years ago

mgrenier25 commented 4 years ago

Maybe this is not an issue but I am having issues with it. Here's code:

` -- Documentation -- http://www.unifiedremote.com/api

-- OS Library -- http://www.unifiedremote.com/api/libs/os

--@help Command 1 actions.command1 = function () os.execute("C:\Users\math_\Desktop\Streamlabs.lnk"); end

--@help Command 2 actions.command2 = function () os.execute("C:\Users\math_\Desktop\Netflix.lnk"); end

--@help Command 3 actions.command3 = function () os.start("chrome"); end `

Streamlabs will launch with a command line window in the background(I would like to avoid this).

Netflix will launch just fine.

I could not get chrome to start any other way.

Whenever I pointed directly to a .exe file using os.start or os.execute it would launch the process but no window would open.

os.open would do nothing on both .exe and .lnk

Platypuschan commented 4 years ago

You chrome.exe isn´t in the path cmd.exe will search automaticly. Starting chrome with os.start("C:\...\chrome.exe") should work wfor you. Think os.start("...") like your windows cmd, just entering chrome there wouldn´t start it either :) Hope i could help you with it.