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.

Calling EventGhost -e from a Process on Windows 7

If you have a question or need help, this is the place to be.
Post Reply
SVoyager
Posts: 2
Joined: Fri May 14, 2010 1:37 am

Calling EventGhost -e from a Process on Windows 7

Post by SVoyager »

Hi,

I'm trying to get EG to change channels of my cable box when im switching them from media center and i'm having some difficulties.

I am using "DVBLINK for HD-PVR" and it executes a .cmd file that can be custom tweaked to execute pretty much what the user wants and is called when a channel change is requested. I made the file call eventghost -e with the channel number to tune to (ex: *fullpath*\EventGhost -e 633). When I execute the file manually, it works fine but when its executed from dvblink, EG seems to have troubles receiving the command.

I have asked over at dvblink's forum to see if someone could come up with an answer and someone got a pretty good theory as to why it is not working and how EG could possibly affect it.

Here is what was answered:
-----
When called from within "DVBLink for HDPVR", your scripts runs a Process and that has some implications:

1) The security settings for the Process are different than the security settings of your account under which Media Center runs.

2) The process cannot interact with software running on the desktop.

So, there is the definite possibility that the event may not be catched by the EventGhost software OR the possibility that EventGhost is not capable of accessing all it needs to do its job.
-----

Here is also the link to the forum, I have posted the entire content of the batch file that calls EG.
http://dvblogic.com/phpBB3/viewtopic.ph ... 233#p26233

Anyone has any clues as to how I could get this working???
Thanks in advance
SV
Last edited by SVoyager on Sat May 15, 2010 8:08 pm, edited 2 times in total.
kingtd
Plugin Developer
Posts: 78
Joined: Fri Jul 13, 2007 7:39 am

Re: Calling EventGhost -e from a Process on Windows 7

Post by kingtd »

Someone recently posted a command-line tool to send a UDP broadcast that the Broadcaster plugin understands. Perhaps you could use the network as a way to bridge the gap?

~K
SVoyager
Posts: 2
Joined: Fri May 14, 2010 1:37 am

Re: Calling EventGhost -e from a Process on Windows 7

Post by SVoyager »

Ohhh, found the plugin, found the soft to send udp, tested it and IT WORKS!!!!

Wow that problem was not easy to fix, goes thru alot of things to reach the final destination but at least it will work.
media center --> dvblink --> batch file --> udpsender --> eventghost --> usb-uirt blast to cable box

haha, thats alot of steps to reach the box, its all done in a fraction of a second tho so its all fine.

thanks again!
kingtd
Plugin Developer
Posts: 78
Joined: Fri Jul 13, 2007 7:39 am

Re: Calling EventGhost -e from a Process on Windows 7

Post by kingtd »

Glad it worked for you! I'm sure there's some cleaner way to deal with cross-process communication in different user spaces, but automation always seems to be about compromises.

~K
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: Calling EventGhost -e from a Process on Windows 7

Post by jitterjames »

why the line

call ..\..\..\..\..\EventGhost\EventGhost.exe -e %FULL_CHANNEL_NUMBER%

why not use an absolute path?

why are you using the call command? did you try just executing eventghost without using it?
Post Reply