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

Problems with actions...

General discussion about LCD Smartie.

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

Post Reply
antonakis
Posts: 36
Joined: October 31st, 2009, 10:36 am

Problems with actions...

Post by antonakis »

First of all, can someone explain to me what is the difference between screen and theme??

About the actions...I had some actions about media player and it was working..
Then i add some actions about nero and nero works , but media player stopped working .Why??

I have these..

if $dll(scrsvr,1,,) = 1 then Backlight(0)
$dll(wmpcom.dll,2,0,0) = 0 then DisableScreen(13)
$dll(wmpcom.dll,2,0,0) = 0 then EnableScreen(17)
$dll(wmpcom.dll,2,0,0) > 0 then DisableScreen(17)
$dll(wmpcom.dll,2,0,0) > 0 then EnableScreen(13)
$dll(mem,1,0,0 )<> none then GotoTheme(5)
$dll(mem,1,0,0 )= none then GotoTheme(4)
$dll(mem,1,0,0 )<> none then EnableScreen(20)
$dll(mem,1,0,0 )= none then EnableScreen(13)

Theme 4 / screen 13 is the same .It is my temeratures screen
Theme 5 / screen 20 is the nero screen
Screen 17 is the media player's screen

limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Re: Problems with actions...

Post by limbo »

Themes are groups of screens.
By default all screen are assigned to theme 1. Themes are extremelly useful if you want to switch your screen behavior.

Consider the following situation:
You have two group of screens, one for winamp (with three screens) and one for system status (with five screens)
The way to go from system screens to winamp screens is to select in each screen "skip if winamp is active" and "skip if winamp is inactive". However there is ananother more effective way to switch between them:
Just enable the winamp screens and select the theme 2 on each screen that belongs on winamp group and after that go to Actions tab and add the following lines:

Code: Select all

If $WinampStat = playing then GoToTheme(2)
If $WinampStat <> playing then GoToTheme(1)
This can cause LCD Smartie to switch between themes even when winamp is on "paused" state and go to theme 1!
Of cource you can set more themes for more usages and more complicated functions by utilizing values from plugins and other LCD Smartie functions.

Post Reply