Posted by member 57005 on 2004-06-05 08:28:29
I have some trouble with getting a rather simple mzscript to work. I'm more or less a newbie in scripting and this is the first time I really need to use it.
Anyway, I use the Gandharva module to control winamp. When I press the play button and a song starts playing I want the play button to disappear and a pause button should take it's place. This would do the trick:
I just need a script to control the "winamp playing" var. I know how to create a script that changes the button when I change the var by hand, but I'm having trouble getting it to work just by pressing this play button. Could anyone help me with this?
BTW, I cannot use a "!shortcutgrouphide" or a "!shortcutgroupshow" bang since the winamp controls are already on an extended bar which uses these commands to show or hide the entire bar (take a look at "http://www.litestep.net/upload/profiles/LunaStepWMP9_57005-684.png").
Anyway, I use the Gandharva module to control winamp. When I press the play button and a song starts playing I want the play button to disappear and a pause button should take it's place. This would do the trick:
If winamp playing
*Shortcut "" 36 -55 amp_pause1.png amp_pause2.png amp_pause3.png #200H !GandharvaCmdPause
Else
*Shortcut "" 36 -55 amp_play1.png amp_play2.png amp_play3.png #200H !GandharvaCmdPlay
EndIf
*Shortcut "" 36 -55 amp_pause1.png amp_pause2.png amp_pause3.png #200H !GandharvaCmdPause
Else
*Shortcut "" 36 -55 amp_play1.png amp_play2.png amp_play3.png #200H !GandharvaCmdPlay
EndIf
I just need a script to control the "winamp playing" var. I know how to create a script that changes the button when I change the var by hand, but I'm having trouble getting it to work just by pressing this play button. Could anyone help me with this?
BTW, I cannot use a "!shortcutgrouphide" or a "!shortcutgroupshow" bang since the winamp controls are already on an extended bar which uses these commands to show or hide the entire bar (take a look at "http://www.litestep.net/upload/profiles/LunaStepWMP9_57005-684.png").