Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

launch application %systemroot% doesn't work

If you have a question or need help, this is the place to be.
Post Reply
lappen

launch application %systemroot% doesn't work

Post by lappen »

works in cli
%systemroot%\ehome\ehshell.exe /entrypoint:{ce32c570-4bec-4aeb-ad1d-cf47b91de0b2}\{fc9abccc-36cb-47ac-8bab-03e8ef5f6f22}

doesn't work in eventghost

have added
executable: %systemroot%\ehome\ehshell.exe
cli options: /entrypoint:{ce32c570-4bec-4aeb-ad1d-cf47b91de0b2}\{fc9abccc-36cb-47ac-8bab-03e8ef5f6f22}
working dir: %systemroot%\ehome\

Also tried other variations to no avail, not sure if bug or if I use it incorrectly.

Code: Select all

   Error in Action: "Start Program: ehshell.exe"
   Traceback (most recent call last) (1544):
     File "C:\Program Files\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
       return self(*args)
     File "C:\Program Files\EventGhost\plugins\System\Execute.py", line 91, in __call__
       arguments = eg.ParseString(arguments)
     File "C:\Program Files\EventGhost\eg\Utils.py", line 204, in ParseString
       res = eval(word, {}, eg.globals.__dict__)
     File "<string>", line 1
       ce32c570-4bec-4aeb-ad1d-cf47b91de0b2
                   ^
   SyntaxError: invalid syntax
EDIT :
This is the full shortcut I want to use in the end
%systemroot%\ehome\ehshell.exe /directmedia:general /nochrome /controlbox:None /entrypoint:{ce32c570-4bec-4aeb-ad1d-cf47b91de0b2}\{fc9abccc-36cb-47ac-8bab-03e8ef5f6f22}
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: launch application %systemroot% doesn't work

Post by jonib »

lappen wrote:This is the full shortcut I want to use in the end
%systemroot%\ehome\ehshell.exe /directmedia:general /nochrome /controlbox:None /entrypoint:{ce32c570-4bec-4aeb-ad1d-cf47b91de0b2}\{fc9abccc-36cb-47ac-8bab-03e8ef5f6f22}
I think EventGhost is trying to interpret {ce32c570-4bec-4aeb-ad1d-cf47b91de0b2}\{fc9abccc-36cb-47ac-8bab-03e8ef5f6f22} as Python code, add an extra "{" to it, I think it should work then.

Code: Select all

{{ce32c570-4bec-4aeb-ad1d-cf47b91de0b2}\{fc9abccc-36cb-47ac-8bab-03e8ef5f6f22}
jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
lappen

Re: launch application %systemroot% doesn't work

Post by lappen »

didn't work, thanks for the tip though
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: launch application %systemroot% doesn't work

Post by jonib »

lappen wrote:didn't work, thanks for the tip though
I should have tested it before posting, but I was going to bed, try this with both "{" doubled.

Code: Select all

{{ce32c570-4bec-4aeb-ad1d-cf47b91de0b2}\{{fc9abccc-36cb-47ac-8bab-03e8ef5f6f22}
jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
lappen

Re: launch application %systemroot% doesn't work

Post by lappen »

jonib wrote:
lappen wrote:didn't work, thanks for the tip though
I should have tested it before posting, but I was going to bed, try this with both "{" doubled.

Code: Select all

{{ce32c570-4bec-4aeb-ad1d-cf47b91de0b2}\{{fc9abccc-36cb-47ac-8bab-03e8ef5f6f22}
jonib
That did it :)

Code: Select all

/directmedia:general /nochrome /controlbox:None /entrypoint:{{ce32c570-4bec-4aeb-ad1d-cf47b91de0b2}\{{fc9abccc-36cb-47ac-8bab-03e8ef5f6f22}
Any idea how to solve the %systemroot%\ehome\ehshell.exe as it can't find the executable when using %systemroot% , I could change it to c:\windows\ehome\ehshell.exe if it's not possible to use systemroot.

Thanks for the help
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: launch application %systemroot% doesn't work

Post by jonib »

lappen wrote:That did it :)
Great :)
Any idea how to solve the %systemroot%\ehome\ehshell.exe as it can't find the executable when using %systemroot% , I could change it to c:\windows\ehome\ehshell.exe if it's not possible to use systemroot.
My guess is that the Start application just doesn't support environment variables.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Post Reply