Wash, rinse, & repeat....
Great work on the plugin. Anyway you can add functionality to poll an indicator and run a command when it switches?
I think I'm in love.
Can someone give me a spoon feed with the IndPoller in this plugin
Im not a programmer but understand some RRcode
I understand what it suppose to do... Help ?
#1 Enable the feature, add/change "IndPoller_Enabled=True" in either rr.ini or skin.ini
#2 Add "IndPoller_Add;MUTE;2;Mute_Ind_Changed" to the end of the "ONSKINSTART" CMD in which ever skin your using, should look like this:
Then add the cmd you want to execute ( if more than a single cmd, create a new cmd to execute the multiple cmd via a single cmd) to the exectbl.ini file, like
Using that example will check every 2 seconds if the "Mute" indicator status has changed. If the status changed, will execute "Mute_Ind_Changed", which will go to the audio screen then wait 2 seconds, then loads the audio browser screen.
Clear enough for you now? I was thinking of making just making a small demo skin that shows more/same examples of how to use some of these great features.
All run very well BBUUTT, often , the [RRExtended] line is erased on
my rr.ini file , and RRExtended don't run again .
Do you know why ?
That line is just there to help keep it organized like all the other major sections. Nothing depends on that line being there! So if your having problems, there is something else causing it/them.
And for which ever you problem is always turn on the RRExt debug and check its log. I have tried to log as much as i can when i'm testing it my self and just leave the lines in the code for latter when someone else might be having a problem to hopefully figure out what is causing it.
That cmd would mostly be used for a skin cmd that could set a setting for a outside app that uses a std ini file layout unlike RR's ini layout as there already std RR cmds that deal with the rr.ini and skin.ini files.
At the last Chicago meet, I mentioned I wanted a way to pause my music when I turn my key off and automatically restart when the key is turned back on. Well I was in Atlanta all last week with family who decided to go shopping two days - ALL DAY. My system is setup to turn the screen off 1 minute after losing AC power and in 2 hours suspend. Needless to say we were never in a store long enough for it to suspend, but having to manually PAUSE/RESUME music everytime we got out of the car got old fast. So I got serious about automating this task.
I already have a timer setup that fires every 15 seconds for audiosource label updates and I figured that interval was sufficient for PAUSE/RESUME also. But how? I googled for an external program to do it to no avail. I tried to figure out if a plugin like POWERMON could be modified to do it (unfortunately POWERMON is no longer supported). I tried to create something with RRCode, but didn't get far. I tried EVAL, but that required too much setup and only worked intermittently. Then I looked at RREXTENDED mated with POWERMON. And here is my code:
In EXECTBL.INI add to ONSKINSTART: "SETVARBYCODE;pstate;powermon_powersrc"
//This resets the variables
In EXECTBL.INI add a timer:
What this does is copy the Power Source label from POWERMON (Battery or External) and creates a variable, ONBATTERY that is a record of the last two states of that label. There are four possible combinations:
External+External - No change still on AC
Battery+Battery - No change still on Battery
External+Battery - Just changed from AC to Battery
Battery+External - Just changed from Battery to AC
The first two fall under the "Else" statement of the BYSTR and fire the RELOADLIST.
Changing from AC to battery means I cut the car off and fires a PAUSE.
Changing from Battery to AC means the key is back on and fires the RESUME.
NO MORE INTERVENTION FROM ME FOR QUICK STOPS. I'm sure this would be helpful to others with laptop installs also. Thanks again Blue ZX3, Festy, and Sal R.
HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327