I'm making and WMP radio skin but i have a problem which i can't solve
If the user presses and button i want to open a file (asx), then run a lua script and 2 command measures.
Like this:
Code: Select all
LeftMouseDownAction=!Execute [open file][lua script update][command 1][command 2]
I tried to add a bat (waiting) file between them to cause an delay but obviously rainmeter just start everything and that's it, the Execute and don't wait till 1 is done before starting the other; So this didn't work.
Then i tried to make 2 calc measures that have and updatedivider=-1:
Code: Select all
[cDelay2]
Measure=Calc
Formula=1
IfEqualValue=1
IfEqualAction=!Execute [!CommandMeasure mPlayer Play][!CommandMeasure cDelay2 UpdateDivider=-1][!DisableMeasure cDelay2]
UpdateDivider=-1
Group=Delay
Code: Select all
LeftMouseDownAction=!Execute [!CommandMeasure cDelay2 UpdateDivider=1][!EnableMeasureGroup Delay]
But i pretty much ran out of idea's; so how can i run the script and commands (with a pause between the commands) after WMP had loaded and asx file by the click on a button.
BTW: i thought there was an way to run Execute=... when the skin starts up, i think it was in the [Rainmeter] section of the skin but i can't find it in the manual. Or was i dreaming?