|
|
#1 |
|
Senior Member
Join Date: Feb 2004
Posts: 183
|
Changing preferences using script
How do you change the preferences using scripts? Specifically the Manual Playlist Advance option?
|
|
|
|
|
|
#2 |
|
-
Join Date: Sep 2003
Location: UK
Posts: 22,237
|
the info in this thread may be of some use -> http://forums.winamp.com/showthread....hreadid=174946
as long as you can send a WM_COMMAND message then you can change most settings -daz Moved to WADEV DrO |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Feb 2004
Posts: 183
|
Unless I can copy the C code that thread ID points to, I can't use that script . Plus I have no idea what a WM_COMMAND message is or how to use one. A little more help if you could, please?
Eye/Onus |
|
|
|
|
|
#4 |
|
-
Join Date: Sep 2003
Location: UK
Posts: 22,237
|
the way winamp works for control is to have messages sent to it in the form of a msg id and then depending on that message will decide what the next two values will be.
eg WM_COMMAND,1,0 without knowing how you're trying to script things, i can't really help out much more since it all depends if you are able to send this message to the main window -daz |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Feb 2004
Posts: 183
|
This is what I plan on doing:
I want to add an LCD onto the Repeat button. Pretending '[' and ']' are the left and right borders of the LCD and '@' is the repeat symbol you see on CD players, it will go like this: [ 1] [@1] [@a] [__]. I want it to cycle through that on a left-click, or you directly select on a right-click. [ 1] = Play One (Manual Playlist Advance ON, Repeat OFF) [@1] = Repeat One (MPA ON, Repeat ON) [@a] = Repeat All (MPA OFF, Repeat ON) [__] = Play (MPA OFF, Repeat OFF) I need to know the code to set MPA and repeat to 1 or 0 from within a script. I can code the LCD screen, the right-click menu and the cycling on left-click from there. Eye/Onus mu'o mi'e .aionys. .i.a'o.e'e ko klama le bende pe denpa bu |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Feb 2004
Posts: 183
|
All I need to know is how to turn repeat and manual playlist advance on and off- if someone can tell me how to do that, I can code the rest myself.
Eye/Onus mu'o mi'e .aionys. .i.a'o.e'e ko klama le bende pe denpa bu Last edited by eye_onus; 26th May 2004 at 22:32. |
|
|
|
|
|
#7 |
|
-
Join Date: Sep 2003
Location: UK
Posts: 22,237
|
SendMessage(hwnd_winamp,WM_WA_IPC,state,IPC_SETREPEAT); (think that's right since i'm typing from memory at work).
that's what you need to flip the repeat mode on / off depending on what 'state' is -daz |
|
|
|
|
|
#8 | |
|
Senior Member
Join Date: Feb 2004
Posts: 183
|
I'm getting an error on this thing: I'm using MC to compile the script, and it exits with a Syntax error at the declaration of hwnd_Winamp.
Here's the output when I try to compile: Quote:
Eye/Onus mu'o mi'e .aionys. .i.a'o.e'e ko klama le bende pe denpa bu |
|
|
|
|
|
|
#9 | |
|
-
Join Date: Sep 2003
Location: UK
Posts: 22,237
|
Quote:
-daz |
|
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Feb 2004
Posts: 183
|
I know you said this is possible in C(++), can a C script be run from within the skin? I don't want to make an exterior plugin for this, I want it to be part of the skin, so if the C script can be run from within the skin, that's all I need.
Eye/Onus mu'o mi'e .aionys. .i.a'o.e'e ko klama le bende pe denpa bu |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|