Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run remote #20

Open
mgrenier25 opened this issue Oct 6, 2019 · 1 comment
Open

Run remote #20

mgrenier25 opened this issue Oct 6, 2019 · 1 comment

Comments

@mgrenier25
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants