Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Action tab - launch program

General discussion about LCD Smartie.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351

Post Reply
zetavu
Posts: 1
Joined: January 27th, 2009, 8:06 pm

Action tab - launch program

Post by zetavu »

Ok, I'm trying to use the action tab along with btvsmartie in order to make command line switches in ledsdriver (there must be a simpler way ;) )

So, when my BTV tuner is recording a show I want it to turn on a led light connected to the serial port. My statement is basically:

IF $dll(BTVSmartie,1,tuner#1,recindicator#1) =1 then Exec[batch.bat]

and batch.bat basically says

"C:\Program Files\LEDSdriver\LEDSdriver.exe" USEREVENT0=1

I had tried to enter that command directly in Exec[], but nothing happened.

My issue is that this is supposed to only trigger when there is a change in state, but it seems to trigger randomly, and the triggering makes a quick popup of the cmd window, which gets rather annoying.

So, my questions:
is this supposed to only launch when the setting changes from 0-1? Is there an issue with btvsmartie? I am using LCDSM v5.3.

Can I put another variable in the = point, instead of 1, a file and use the $File(C:\file.txt,1) (letting me change the text in this file with my batch file)

Is there another way to change the USEREVENT in ledsdriver without a batch file?

Lastly, is there a way to run led lights directly with LCDSM or an alternative to ledsdriver?

Thanks in advance.

ShannonNewton
Posts: 1
Joined: September 26th, 2013, 10:57 am

Re: Action tab - launch program

Post by ShannonNewton »

zetavu wrote:Ok, I'm trying to use the action tab along with btvsmartie in order to make command line switches in ledsdriver (there must be a simpler way ;) )

So, when my BTV tuner is recording a show I want it to turn on a led light connected to the serial port. My statement is basically:

IF $dll(BTVSmartie,1,tuner#1,recindicator#1) =1 then Exec[batch.bat]

and batch.bat basically says

"C:\Program Files\LEDSdriver\LEDSdriver.exe" USEREVENT0=1

I had tried to enter that command directly in Exec[], but nothing happened.

My issue is that this is supposed to only trigger when there is a change in state, but it seems to trigger randomly, and the triggering makes a quick popup of the cmd window, which gets rather annoying.

So, my questions:
is this supposed to only launch when the setting changes from 0-1? Is there an issue with btvsmartie? I am using LCDSM v5.3.

Can I put another variable in the = point, instead of 1, a file and use the $File(C:\file.txt,1) (letting me change the text in this file with my batch file)

Is there another way to change the USEREVENT in ledsdriver without a batch file?

Lastly, is there a way to run led lights directly with LCDSM or an alternative to ledsdriver?

Thanks in advance.
It was exciting tab..Technology has changed lot in last few years so the tab is not in much use now

Post Reply