Post 1 made on Thursday February 11, 2021 at 17:12 |
mattmarsden Junior Member |
Joined: Posts: | January 2021 27 |
|
|
So I want the power button on an activity to run some script (stop and clear a playlist) and execute some actions (turn of 3 devices by IR). I know this can't be done without creating a dummy button which I've done and I can call it with CF.widget("POWER","ACTION").executeActions(); and that works fine.If I put the script after it:
sendCommand("Stop()"); sendCommand("ClearPlayList(0)"); refreshPlaylist();
That script doesn't run. I've even tried putting that script in another button and doing
CF.widget("CLEAR","ACTION").executeActions();
CF.widget("POWER","ACTION").executeActions();
but whichever one is called last doesn't run. What am I doing wrong??
|
|
|