SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-05-2005, 11:50 AM
danward79's Avatar
danward79 danward79 is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Brighton & Hove, Sussex UK
Posts: 251
Using listener to execute Command line program

Hi,

I have been having a play wit studio, with a viw to linking it in with my Home Automation system and Girder better.

I think the listeners are ideal for me. I am trying to execute a small commandline program, but it is not working. Could someone just steer me in the right direction please.

I have been trying to use Execute Process. I have the following as it's parameters

p = ExecuteProcess("cmd", "C:\\Program Files\\Promixis\\Girder\\event.exe" + " hello", null, true)

Which does not work.

I have also tried

p = ExecuteProcess("cmd", "C:\Program Files\Promixis\Girder\event.exe hello", null, true)

and

p = ExecuteProcess("C:\Program Files\Promixis\Girder\event.exe", " hello", null, true)

So the question is... What am I doing wrong.

I have had a look in the tracer, and it is seeing the listener event.

I have set it up so I have the listener ---> Action.

Thanks in advance.

Dan
Reply With Quote
  #2  
Old 11-05-2005, 11:59 AM
Kanati's Avatar
Kanati Kanati is offline
Sage Expert
 
Join Date: May 2005
Posts: 567
I have not tried this at ALL... but try this instead...

p = ExecuteProcess("C:\\Program Files\\Promixis\\Girder\\event.exe", "hello", null, true)

See if that works for you.
Reply With Quote
  #3  
Old 11-05-2005, 12:24 PM
danward79's Avatar
danward79 danward79 is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Brighton & Hove, Sussex UK
Posts: 251
Thanks that did the trick

Do you know if it is possible to have "Global Listeners"?

Rather than "Local" ones, by that I mean a listener that applies to all menu's
Reply With Quote
  #4  
Old 11-05-2005, 01:52 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Sure is. Just create a Theme and name it "Global". Any listeners underneath it are considered global listeners. It's covered in the manual.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #5  
Old 11-05-2005, 01:56 PM
danward79's Avatar
danward79 danward79 is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Brighton & Hove, Sussex UK
Posts: 251
Thanks Jeff,

Sorry, I have printed the manual, just not been on the train to work for a couple of days... So next time I go to work I will start reading it.

I read everything on the train! ;-)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 12:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.