Old 27th July 2004, 08:53   #641
Velvet Sledge
Senior Member
 
Velvet Sledge's Avatar
 
Join Date: May 2004
Location: Oztralia.
Posts: 344
okay, i really have no idea, i've looked at those sites, and it's all still as clear as mud (which btw is not good).

how far from the mark is this:

System.getPlayItemMetaDataString(MT_ARTIST)

this will get song artist info from the file... but doesn't it need somewhere to store this? for future reference? i don't know... are there any decent maki tutes? or even a well commented script i can read over? baring in mind my coding experience got little further then starting this skin...

"Before you judge a man, walk a mile in his shoes, after that who cares... you a mile away, and you've got his shoes." - Billy Connelly

"And the lord said unto john, come forth and recieve eternal life, but john came fifth and won a toaster" - Someone else in the winamp forums

"There's nothing wrong with the voices in my head... except when they start singing "this is the song that doesn't end.... "" - Me
Velvet Sledge is offline   Reply With Quote
Old 5th August 2004, 09:02   #642
frisbeemonkey
Major Dude
 
frisbeemonkey's Avatar
 
Join Date: Jun 2002
Posts: 851
Hey Velvet,

Yes, that is close to the mark, but as I mentioned in the other thread, use the value under "Column Name" which in this case would be "Artist"

And yes, you are very right, you do need to store it somewhere A string would be a good place to store it.

Tell ya what, since I'm not working on my projects at the moment, gimme a few days, and I'll have a walkthrough MAKI tut on how to do this. It'll be painfully basic, but should prove a useful launchpad for you and anyone else having trouble getting into MAKI.

~FrisbeeMonkey
frisbeemonkey is offline   Reply With Quote
Old 5th August 2004, 09:46   #643
Velvet Sledge
Senior Member
 
Velvet Sledge's Avatar
 
Join Date: May 2004
Location: Oztralia.
Posts: 344
painfully basic... i like the sound of that... has anyone else mentioned you a god? if i were a chick i'd probably want to lick your neck....




ROFLMAO... just HAD to say that...

"Before you judge a man, walk a mile in his shoes, after that who cares... you a mile away, and you've got his shoes." - Billy Connelly

"And the lord said unto john, come forth and recieve eternal life, but john came fifth and won a toaster" - Someone else in the winamp forums

"There's nothing wrong with the voices in my head... except when they start singing "this is the song that doesn't end.... "" - Me
Velvet Sledge is offline   Reply With Quote
Old 9th August 2004, 00:59   #644
QuadHeliX
Major Dude
 
QuadHeliX's Avatar
 
Join Date: Jan 2003
Location: Washington State
Posts: 1,133
$50 Paypal to first person that makes a Button that when held down for say 2 seconds remembers a Song Location, song URL ect...Line 5 of them next to each other. Buttons 1 2 3 4 5.

Demostrate it in a simple skin.
QuadHeliX is offline   Reply With Quote
Old 9th August 2004, 02:45   #645
Velvet Sledge
Senior Member
 
Velvet Sledge's Avatar
 
Join Date: May 2004
Location: Oztralia.
Posts: 344
you mean like a basic memory?

"Before you judge a man, walk a mile in his shoes, after that who cares... you a mile away, and you've got his shoes." - Billy Connelly

"And the lord said unto john, come forth and recieve eternal life, but john came fifth and won a toaster" - Someone else in the winamp forums

"There's nothing wrong with the voices in my head... except when they start singing "this is the song that doesn't end.... "" - Me
Velvet Sledge is offline   Reply With Quote
Old 9th August 2004, 03:27   #646
QuadHeliX
Major Dude
 
QuadHeliX's Avatar
 
Join Date: Jan 2003
Location: Washington State
Posts: 1,133
in winamp memory everytime.
QuadHeliX is offline   Reply With Quote
Old 9th August 2004, 05:54   #647
leechbite
Major Dude
 
leechbite's Avatar
 
Join Date: Sep 2003
Location: Canada
Posts: 635
Send a message via Yahoo to leechbite
Hi Quad,

here's something i did quickly that sort of does what you want. For some weird reason, playfile(string playitem); is not working properly. (or could be just me ) it saves the proper URL or song path but playfile(); seems to add weird characters to the path. well, here it is. peeps here might be able to figure out the bugs.
Attached Files
File Type: wal quicksongpick-test.wal (5.9 KB, 304 views)
leechbite is offline   Reply With Quote
Old 9th August 2004, 05:55   #648
Velvet Sledge
Senior Member
 
Velvet Sledge's Avatar
 
Join Date: May 2004
Location: Oztralia.
Posts: 344
hmmm... may i suggest the 'J' key? it's a hell of a lot simpler, but i know about this || much about maki, so i'm not the one to ask

"Before you judge a man, walk a mile in his shoes, after that who cares... you a mile away, and you've got his shoes." - Billy Connelly

"And the lord said unto john, come forth and recieve eternal life, but john came fifth and won a toaster" - Someone else in the winamp forums

"There's nothing wrong with the voices in my head... except when they start singing "this is the song that doesn't end.... "" - Me
Velvet Sledge is offline   Reply With Quote
Old 9th August 2004, 06:02   #649
Velvet Sledge
Senior Member
 
Velvet Sledge's Avatar
 
Join Date: May 2004
Location: Oztralia.
Posts: 344
hmmmmmmm problem with that... it loads the song into a play list, so there are no other songs, i imagine that he wants it to just go to a position in the play list...

"Before you judge a man, walk a mile in his shoes, after that who cares... you a mile away, and you've got his shoes." - Billy Connelly

"And the lord said unto john, come forth and recieve eternal life, but john came fifth and won a toaster" - Someone else in the winamp forums

"There's nothing wrong with the voices in my head... except when they start singing "this is the song that doesn't end.... "" - Me
Velvet Sledge is offline   Reply With Quote
Old 9th August 2004, 06:22   #650
QuadHeliX
Major Dude
 
QuadHeliX's Avatar
 
Join Date: Jan 2003
Location: Washington State
Posts: 1,133
Edit...Works great Leech could you see if you can make it so the playlist is not totally erased, but song is put in with other songs. if not no prob, you got the $ anyway.

Last edited by QuadHeliX; 9th August 2004 at 07:09.
QuadHeliX is offline   Reply With Quote
Old 9th August 2004, 07:34   #651
leechbite
Major Dude
 
leechbite's Avatar
 
Join Date: Sep 2003
Location: Canada
Posts: 635
Send a message via Yahoo to leechbite
i dont think its possible to have the file appended to the PL Quad. needs a WAC to do that (i think).
leechbite is offline   Reply With Quote
Old 9th August 2004, 08:30   #652
UUL
Winamp Addict
(Major Dude)
 
UUL's Avatar
 
Join Date: May 2003
Location: Winamp Modern Skinning Forum!
Posts: 868
Send a message via ICQ to UUL Send a message via AIM to UUL Send a message via Yahoo to UUL
you think correct (i think)

/edit: It doesn't work with all my files , it saves the link incorrect
UUL is offline   Reply With Quote
Old 9th August 2004, 08:47   #653
leechbite
Major Dude
 
leechbite's Avatar
 
Join Date: Sep 2003
Location: Canada
Posts: 635
Send a message via Yahoo to leechbite
um Quad, does that work on all songs on your machine? it does not work on some songs on mine.
leechbite is offline   Reply With Quote
Old 14th August 2004, 20:01   #654
Boricuaso
Senior Member
 
Boricuaso's Avatar
 
Join Date: Apr 2004
Location: killeen, Texas
Posts: 276
i spent some hours looking for this simple piece of code,but noting, so here is what i came up with, hope it will save someone els some time.

code:

//=========================================By Boricuaso============================================================
// here is a very simple animation by button
// runs an animationlayer
// in one direction when button pressed
// and then the other when button pressed again
// here is how it works: add below code to ?.xml
// and fill in the ?.
// <button
// id="animationbutton" // dont change
// x="?" y="?"
// image="?"
// downImage="?"
// activeImage="?"
// hoverImage="?"
// />
//
// <AnimatedLayer
// x="?" y="?"
// w="149" h="65" //single frame w,h.
// id="animationlayer" // dont change
// image="?"
// move="1"
// speed="50" //set your speed default is 200ms witch is the slowest oms the fastest.
// autoplay="0" // dont change
// autoreplay="0" // dont change
// sysregion="1"
// />
//
// <layer id="animinfo" x="10" y="0" /> //here you set the start and end frame of your animation.
// <!-- x="last image or frame" y="first image or frame" -->
//
// <script id="animbybutton" file="scripts/animbybutton.maki" /> //dont forget this!
//================================================================================================================

#include </lib/std.mi>

Global Button AnimButton;
Global AnimatedLayer Animlayer;
Global Layer animinfo;

Global Int a, frameX, frameY;


System.onScriptLoaded() {

Group ScrptGrp = System.getScriptGroup();

Animlayer = ScrptGrp.findObject("animationlayer"); //to add more animation and buttons change this to something else!!
AnimButton = ScrptGrp.findObject("animationbutton"); //to add more animation and buttons change this to something else!!
animinfo = ScrptGrp.findObject("animinfo"); //to add more animation and buttons change this to something else!!
frameX = StringToInteger(animinfo.getXMLparam("x"));
frameY = StringToInteger(animinfo.getXMLparam("y"));

a = 0;
}






AnimButton.onLeftButtonUp(int x, int y) {
if (a == 1) {
a = 0;

Animlayer.setStartFrame(frameX);
Animlayer.setEndFrame(frameY);
Animlayer.play();

} else if (a == 0) {
a = 1;

Animlayer.setStartFrame(frameY);
Animlayer.setEndFrame(frameX);
Animlayer.play();
}
}


Last edited by Boricuaso; 14th August 2004 at 20:19.
Boricuaso is offline   Reply With Quote
Old 14th August 2004, 20:04   #655
UUL
Winamp Addict
(Major Dude)
 
UUL's Avatar
 
Join Date: May 2003
Location: Winamp Modern Skinning Forum!
Posts: 868
Send a message via ICQ to UUL Send a message via AIM to UUL Send a message via Yahoo to UUL
doesn't it screw up when you click the button when still animating, guess not, just checkin'

UUL
UUL is offline   Reply With Quote
Old 14th August 2004, 20:15   #656
Boricuaso
Senior Member
 
Boricuaso's Avatar
 
Join Date: Apr 2004
Location: killeen, Texas
Posts: 276
if its runing the animation one way and the button is pressed it will jump to the new direccion,

but like stated on the code explenation its a very simple animation by button!

can you tell me how to make it go all the way thru the animation before the button becomes active to change the drawer!
Boricuaso is offline   Reply With Quote
Old 14th August 2004, 20:18   #657
UUL
Winamp Addict
(Major Dude)
 
UUL's Avatar
 
Join Date: May 2003
Location: Winamp Modern Skinning Forum!
Posts: 868
Send a message via ICQ to UUL Send a message via AIM to UUL Send a message via Yahoo to UUL
here ya go, should work

code:
//=========================================By Boricuaso============================================================
// here is a very simple anymation by button
// runs an anymationlayer
// in one direction when button pressed
// and then the other when button pressed again
// here is how it works: add below code to ?.xml
// and fill in the ?.
// <button
// id="animationbutton" // dont change
// x="?" y="?"
// image="?"
// downImage="?"
// activeImage="?"
// hoverImage="?"
// />
//
// <AnimatedLayer
// x="?" y="?"
// w="149" h="65" //single frame w,h.
// id="animationlayer" // dont change
// image="?"
// move="1"
// speed="50" //set your speed default is 200ms witch is the slowest oms the fastest.
// autoplay="0" // dont change
// autoreplay="0" // dont change
// sysregion="1"
// />
//
// <layer id="animinfo" x="10" y="0" /> //here you set the start and end frame of your animation.
// <!-- x="last image or frame" y="first image or frame" -->
//
// <script id="animbybutton" file="scripts/animbybutton.maki" /> //dont forget this!
// ================================================================================
================================

#include </lib/std.mi>

Global Button AnimButton;
Global AnimatedLayer Animlayer;
Global Layer animinfo;

Global Int a, frameX, frameY;


System.onScriptLoaded() {

Group ScrptGrp = System.getScriptGroup();

Animlayer = ScrptGrp.findObject("animationlayer"); //to add more animation and buttons change this to something ealse!!
AnimButton = ScrptGrp.findObject("animationbutton"); //to add more animation and buttons change this to something ealse!!
animinfo = ScrptGrp.findObject("animinfo"); //to add more animation and buttons change this to something ealse!!
frameX = StringToInteger(animinfo.getXMLparam("x"));
frameY = StringToInteger(animinfo.getXMLparam("y"));

a = 0;
}






AnimButton.onLeftButtonUp(int x, int y) {
if (a == 1 && AnimLayer.isStopped()) {
a = 0;

Animlayer.setStartFrame(frameX);
Animlayer.setEndFrame(frameY);
Animlayer.play();

} else if (a == 0 && AnimLayer.isStopped()) {
a = 1;

Animlayer.setStartFrame(frameY);
Animlayer.setEndFrame(frameX);
Animlayer.play();
}
}

UUL is offline   Reply With Quote
Old 14th August 2004, 20:30   #658
Boricuaso
Senior Member
 
Boricuaso's Avatar
 
Join Date: Apr 2004
Location: killeen, Texas
Posts: 276
thanks alot!UUL
works like a sharm.
Boricuaso is offline   Reply With Quote
Old 14th August 2004, 20:33   #659
UUL
Winamp Addict
(Major Dude)
 
UUL's Avatar
 
Join Date: May 2003
Location: Winamp Modern Skinning Forum!
Posts: 868
Send a message via ICQ to UUL Send a message via AIM to UUL Send a message via Yahoo to UUL
np
UUL is offline   Reply With Quote
Old 17th August 2004, 03:37   #660
Boricuaso
Senior Member
 
Boricuaso's Avatar
 
Join Date: Apr 2004
Location: killeen, Texas
Posts: 276
hello again! im trying to add a right click popup menu to a button for an animation layer,the animation layer covers the eq, in drawer style and i want to add the option on the popup for it to be open on startup or stay close on startup till the drawer or button is clicked, now i got the popup menu to pop and show the on start "status", but cant change it!, the only way to change it is trugh the w="1" for open and w="0" for close on the .xml to update the script,i tryed to get this to work for hours now, so could some one please take a look at this code! and help me fix it? thanks.


code:

#include </lib/std.mi>
Function setTempText(String txt);
Function emptyTempText();

Global Text Songticker;
Global Timer Songtickertimer;
Global Button AnimButton;
Global AnimatedLayer Animlayer;
Global Layer animinfo;

Global Int a, b, onoff,frameX, frameY;
Global PopupMenu drawerMenu;

System.onScriptLoaded() {

Songtickertimer = new Timer;
Songtickertimer.setDelay(1000);

Group ScrptGrp = System.getScriptGroup();

Songticker = ScrptGrp.getObject("Songticker");
Animlayer = ScrptGrp.findObject("animationlayer");
AnimButton = ScrptGrp.findObject("animationbutton");
animinfo = ScrptGrp.findObject("animinfo");
frameX = StringToInteger(animinfo.getXMLparam("x"));
frameY = StringToInteger(animinfo.getXMLparam("y"));

onoff = StringToInteger(animinfo.getXMLparam("w"));
drawerMenu = new PopupMenu;
drawerMenu.addCommand("opened on start up",1,onoff==1,0);
drawerMenu.addSeparator();
drawerMenu.addCommand("closed on start up",2,onoff==0,0);

if(b == 0) {
a = 0;
setTempText("eq hiden on start up");
} else if (b == 1) {
a = 1;
Animlayer.setStartFrame(frameY);
Animlayer.setEndFrame(frameX);
Animlayer.play();
setTempText("eq shows on start up");
}
}

AnimButton.onRightButtonUp(int x, int y) {

drawerMenu.checkCommand(1,(onoff == 1));
drawerMenu.checkCommand(2,(onoff== 0));

int Choice = drawerMenu.popAtMouse();
if (Choice == 1) {
animinfo.setXmlParam("w", "0");
b = 1;
onoff = 1;
} else if (Choice == 2) {
animinfo.setXmlParam("w", "1");
b = 0;
onoff = 0;
}
complete;
}

AnimButton.onLeftButtonUp(int x, int y) {
if (a == 1 && AnimLayer.isStopped()) {
a = 0;
Animlayer.setStartFrame(frameX);
Animlayer.setEndFrame(frameY);
Animlayer.play();
setTempText("eq hiden");

} else if (a == 0 && AnimLayer.isStopped()) {
a = 1;
Animlayer.setStartFrame(frameY);
Animlayer.setEndFrame(frameX);
Animlayer.play();
setTempText("eq exposed");


}
}

Animlayer.onLeftButtonUp(int x, int y) {
if (a == 1 && AnimLayer.isStopped()) {
a = 0;
Animlayer.setStartFrame(frameX);
Animlayer.setEndFrame(frameY);
Animlayer.play();
setTempText("eq hiden");

} else if (a == 0 && AnimLayer.isStopped()) {
a = 1;
Animlayer.setStartFrame(frameY);
Animlayer.setEndFrame(frameX);
Animlayer.play();
setTempText("eq exposed");


}
}



Songtickertimer.onTimer() {
Songticker.setText("");
stop();
}


setTempText(String txt) {
Songtickertimer.stop();
Songticker.setText(txt);
Songtickertimer.start();
}

emptyTempText() {
Songticker.setText("");
Songtickertimer.stop();
}

System.onScriptUnloading() {
delete Songtickertimer;
delete drawerMenu;
}




thanks again later
Boricuaso is offline   Reply With Quote
Old 17th August 2004, 08:12   #661
Velvet Sledge
Senior Member
 
Velvet Sledge's Avatar
 
Join Date: May 2004
Location: Oztralia.
Posts: 344
hey frizbee... sorry to be a nag... but how's that maki script going, the one you said you'd try and put together for me? if you can't be bothered don't worry...

adios

"Before you judge a man, walk a mile in his shoes, after that who cares... you a mile away, and you've got his shoes." - Billy Connelly

"And the lord said unto john, come forth and recieve eternal life, but john came fifth and won a toaster" - Someone else in the winamp forums

"There's nothing wrong with the voices in my head... except when they start singing "this is the song that doesn't end.... "" - Me
Velvet Sledge is offline   Reply With Quote
Old 17th August 2004, 16:39   #662
leechbite
Major Dude
 
leechbite's Avatar
 
Join Date: Sep 2003
Location: Canada
Posts: 635
Send a message via Yahoo to leechbite
give this a try Boricuaso:

code:

#include </lib/std.mi>
Function setTempText(String txt);
Function emptyTempText();

Global Text Songticker;
Global Timer Songtickertimer;
Global Button AnimButton;
Global AnimatedLayer Animlayer;
Global Layer animinfo;

Global Int a, b, onoff,frameX, frameY;
Global PopupMenu drawerMenu;

System.onScriptLoaded() {

Songtickertimer = new Timer;
Songtickertimer.setDelay(1000);

Group ScrptGrp = System.getScriptGroup();

Songticker = ScrptGrp.getObject("Songticker");
Animlayer = ScrptGrp.findObject("animationlayer");
AnimButton = ScrptGrp.findObject("animationbutton");
animinfo = ScrptGrp.findObject("animinfo");
frameX = StringToInteger(animinfo.getXMLparam("x"));
frameY = StringToInteger(animinfo.getXMLparam("y"));

onoff = getPrivateInt(getSkinName(), "onoff", 0);
if (onoff==1)
animinfo.setXmlParam("w", "0");
b = 1;
} else {
animinfo.setXmlParam("w", "1");
b = 0;
}
drawerMenu = new PopupMenu;
drawerMenu.addCommand("opened on start up",1,onoff==1,0);
drawerMenu.addSeparator();
drawerMenu.addCommand("closed on start up",2,onoff==0,0);

if(b == 0) {
a = 0;
setTempText("eq hiden on start up");
} else if (b == 1) {
a = 1;
Animlayer.setStartFrame(frameY);
Animlayer.setEndFrame(frameX);
Animlayer.play();
setTempText("eq shows on start up");
}
}

AnimButton.onRightButtonUp(int x, int y) {

drawerMenu.checkCommand(1,(onoff == 1));
drawerMenu.checkCommand(2,(onoff== 0));

int Choice = drawerMenu.popAtMouse();
if (Choice == 1) {
animinfo.setXmlParam("w", "0");
b = 1;
onoff = 1;
} else if (Choice == 2) {
animinfo.setXmlParam("w", "1");
b = 0;
onoff = 0;

setPrivateInt(getSkinName(), "onoff", onoff);
}
complete;
}

AnimButton.onLeftButtonUp(int x, int y) {
if (a == 1 && AnimLayer.isStopped()) {
a = 0;
Animlayer.setStartFrame(frameX);
Animlayer.setEndFrame(frameY);
Animlayer.play();
setTempText("eq hiden");

} else if (a == 0 && AnimLayer.isStopped()) {
a = 1;
Animlayer.setStartFrame(frameY);
Animlayer.setEndFrame(frameX);
Animlayer.play();
setTempText("eq exposed");


}
}

Animlayer.onLeftButtonUp(int x, int y) {
if (a == 1 && AnimLayer.isStopped()) {
a = 0;
Animlayer.setStartFrame(frameX);
Animlayer.setEndFrame(frameY);
Animlayer.play();
setTempText("eq hiden");

} else if (a == 0 && AnimLayer.isStopped()) {
a = 1;
Animlayer.setStartFrame(frameY);
Animlayer.setEndFrame(frameX);
Animlayer.play();
setTempText("eq exposed");


}
}



Songtickertimer.onTimer() {
Songticker.setText("");
stop();
}


setTempText(String txt) {
Songtickertimer.stop();
Songticker.setText(txt);
Songtickertimer.start();
}

emptyTempText() {
Songticker.setText("");
Songtickertimer.stop();
}

System.onScriptUnloading() {
delete Songtickertimer;
delete drawerMenu;
}




you need to use getprivateint() & setprivateint() to save and retrieve settings.
leechbite is offline   Reply With Quote
Old 17th August 2004, 17:35   #663
Boricuaso
Senior Member
 
Boricuaso's Avatar
 
Join Date: Apr 2004
Location: killeen, Texas
Posts: 276
Quote:
you need to use getprivateint() & setprivateint() to save and retrieve settings.
i kind of had a clue but was not sure,
i realy need a maki tutorial! not a reference but how the code flows,how is everything used,you know! i can kind of read it, copy and paste kind of stuff,but cant realy write for shiaaat! any realy good web links? for maki?

ill have to take a longer look at the script,it did'nt compile right of the bat!
i guess there are some settings i have to configure on the script? hehe

thanks again leechbite!
ill see whats going on.
Boricuaso is offline   Reply With Quote
Old 17th August 2004, 18:03   #664
Boricuaso
Senior Member
 
Boricuaso's Avatar
 
Join Date: Apr 2004
Location: killeen, Texas
Posts: 276
thanks again leechbite!
got the code to compile
added one line and modded another one and it works,
thanks a bunch:






Quote:
AnimButton.onRightButtonUp(int x, int y) {

drawerMenu.checkCommand(1,(onoff == 1));
drawerMenu.checkCommand(2,(onoff== 0));

int Choice = drawerMenu.popAtMouse();
if (Choice == 1) {
animinfo.setXmlParam("w", "0");
b = 1;
onoff = 1;
setPrivateInt(getSkinName(), "onoff", 1); //<--and added this line
} else if (Choice == 2) {
animinfo.setXmlParam("w", "1");
b = 0;
onoff = 0;
setPrivateInt(getSkinName(), "onoff",0); //<--changed to 0 from --(,onoff);


}
complete;
}

Last edited by Boricuaso; 17th August 2004 at 18:52.
Boricuaso is offline   Reply With Quote
Old 17th August 2004, 20:00   #665
ziege
Senior Member
 
ziege's Avatar
 
Join Date: Oct 2002
Location: UK
Posts: 363
Quote:
Originally posted by Boricuaso
i kind of had a clue but was not sure,
i realy need a maki tutorial! not a reference but how the code flows,how is everything used,you know! i can kind of read it, copy and paste kind of stuff,but cant realy write for shiaaat! any realy good web links? for maki?
Have you already seen How to write a MAKI script by iPlayTheSpoons? It's pretty basic and you may already be past that level, I dunno. That's the tut that made everything first 'click' for me.

WIP: NSX-999
ziege is offline   Reply With Quote
Old 17th August 2004, 20:55   #666
Boricuaso
Senior Member
 
Boricuaso's Avatar
 
Join Date: Apr 2004
Location: killeen, Texas
Posts: 276
@ziege
yes i have,thanks, preaty much if its a tutorial inside the forum and preaty visible you can bet i have look at it several times,
i meant for something that will start you from the begining, for people that have never seen a piece of code work before.or
"just for slow ass people like me that need to be walked by the hand",hehe.
im catching on though.
Boricuaso is offline   Reply With Quote
Old 18th August 2004, 19:32   #667
Boricuaso
Senior Member
 
Boricuaso's Avatar
 
Join Date: Apr 2004
Location: killeen, Texas
Posts: 276
crossfade popup layer on crossfade right click

i wrote this cuz i couldnt find a similar one,
what it does:
when the xfade button is right clicked, a popup layer desighn by you will show with the controls to increase,decrase,activate,deactive and shows current xfade value.

thats all. i hope it can be of use to some one.
later

edit: now when changes made to the crossfade lengh, they get updated on the songticker to "crossfade is now #value percent"
Attached Files
File Type: m crossfade.m (7.0 KB, 324 views)

Last edited by Boricuaso; 18th August 2004 at 21:55.
Boricuaso is offline   Reply With Quote
Old 24th August 2004, 15:53   #668
QuadHeliX
Major Dude
 
QuadHeliX's Avatar
 
Join Date: Jan 2003
Location: Washington State
Posts: 1,133
wanted to break the 666 at the top of the forums, bad luck it is to all.
QuadHeliX is offline   Reply With Quote
Old 25th August 2004, 08:17   #669
matt_69
Sunshine
(Major Dude)
 
matt_69's Avatar
 
Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
mmm...i been seeing that there too wondering about it...ok, back on topic again...

-matt

matt_69 is offline   Reply With Quote
Old 10th September 2004, 18:36   #670
greenthief
Junior Member
 
Join Date: Sep 2004
Posts: 13
Send a message via AIM to greenthief
i have a question. it problay has a simple answer to it.
i am trying to get my Equalizer to show up when i click on a button but it does nothing.
im at a lose?

Thanks in advance
GreenThief
greenthief is offline   Reply With Quote
Old 10th September 2004, 20:16   #671
SLoB
Major Dude
 
SLoB's Avatar
 
Join Date: Jul 2003
Location: UK
Posts: 1,316
did you read any of the maki cheats thread at all?
thers tons of info i'm sure that has been covered somewhere

is your equaliser in a group, in a seperate container, in a draw?
SLoB is offline   Reply With Quote
Old 13th September 2004, 21:55   #672
greenthief
Junior Member
 
Join Date: Sep 2004
Posts: 13
Send a message via AIM to greenthief
yes...i have read all but a few pages and im reading through them now.
i have also read several other threads and have found a few ways to do this.
i have also went through several skins and they show different ways of doing it but they use the same thing
param="eq"
this does not work for me...i dont know why but here my skin.
if someone would look it over and tell me what im doing wrong, it would be appericative.

i will appolagise for the lack of comments, this is my first skin.

thanks in advance
GreenThief
greenthief is offline   Reply With Quote
Old 23rd September 2004, 15:15   #673
greenthief
Junior Member
 
Join Date: Sep 2004
Posts: 13
Send a message via AIM to greenthief
My Appoliges to all for my previous post. If a mod could delete it I would be in their debt.
I would like to say that I am a Dumbass.
i scraped that version and started from scrach. I now understand better how the skin works and I have got my Equalizer to work.
I have a question about maki files.
I have took and deleted some code from a file i found in another skin.
is it ok to use it if I give credit to the original coder?
here is a screenshot of what I have done so far ScreenShot .

Thank you for such a great thread frisbeemonkey and again Im sorry for the bad post

GreenThief
greenthief is offline   Reply With Quote
Old 14th October 2004, 13:52   #674
krckoorascic
Senior Member
 
krckoorascic's Avatar
 
Join Date: May 2004
Location: Serbia
Posts: 351
Send a message via ICQ to krckoorascic Send a message via AIM to krckoorascic Send a message via Yahoo to krckoorascic
Hi to all of you good people! ;o)
I have one question:
HOW to use attribs.m???
I want to put something as action param to one button
and when button is clicked then to call script.
I saw something like that in resurgence skin so i decided
to ask here.

Thnx in advance!


krckoorascic is offline   Reply With Quote
Old 22nd October 2004, 15:14   #675
IronFist
Banned
 
Join Date: Oct 2004
Posts: 6
IRON JUSTICE

*removed*
IronFist is offline   Reply With Quote
Old 8th November 2004, 02:19   #676
watercolours
Member
 
Join Date: Feb 2004
Posts: 92
Quote:
Originally posted by carlosp
ooopppssss sorry for that. here is the fixed version.
the fixed script file also has error. when i tried to compile it (i haven't changed anything) mc.exe came up with this error:
-------------------------------------------
can't delete a Int, class is not instantiable/deletable at clock.m:69 [19] :

delete clockMode;

Exited with code 4
-------------------------------------------
then i compared the m file with the fix suggestion on same page and found this (i forgot who suggested the change, sorry).

//deletes the Timer when the script is unloaded
System.onScriptUnloading() {
delete ClockTmr;
delete clockMenu;
}

is suggested but in m file i downloaded it was

//deletes the Timer when the script is unloaded
System.onScriptUnloading() {
delete ClockTmr;
delete clockMode ;
}

so, you have to change clockMode to clockMenu. i just wanted to warn. i am not a maki god, even not a rookie.
watercolours is offline   Reply With Quote
Old 8th November 2004, 17:01   #677
watercolours
Member
 
Join Date: Feb 2004
Posts: 92
frisbeemonkey or some other maki guru, please check http://forums.winamp.com/showthread....readid=198504. i found and compiled the updated verison of play2pause.maki but since i use overlays i combined it with frisbeemonkey's version with overlay stuff. but i have problems. please check the last message at the link. please.
watercolours is offline   Reply With Quote
Old 27th December 2004, 17:05   #678
JW
Senior Member
 
Join Date: Nov 2004
Location: Valencia, CA
Posts: 304
Problem with seekbuttons script

I got the seekbuttons script from frisbeemonkey's site, and it does something odd - when the script is loaded, if you press the previous or next button, it'll track skip like it's supposed to. If you press and hold either one, it'll seek. BUT, after doing a seek, the standard previous or next stop working. Seek still works, but no more track skipping unless the skin is reloaded.

PHP Code:
// never forget to include std.mi
#include ..\..\..\std.mi

// declarations
global button backforward;
global 
int b1b2p1p2a1a2;
global 
timer buttontimer1buttontimer2;
global 
group pgroup;
global 
boolean time1time2;


system.onscriptloaded() {

    
pgroup getscriptgroup(); //finds the group the buttons are in.

    
back pgroup.findobject("previous");  //finds our buttons
    
forward pgroup.findobject("next");

    
buttontimer1 = new timer;  //makes the timers and sets their delay
    
buttontimer1.setdelay(1);

    
buttontimer2 = new timer;
    
buttontimer2.setdelay(1);

}  
//ends the onscriptloaded command


system.onscriptunloading() {

    
delete buttontimer1;
    
delete buttontimer2;

}


back.onleftbuttondown(int xint y) {
    
buttontimer1.start();  //starts the timer when you click down

}


back.onleftbuttonup(int xint y) {
    
buttontimer1.stop();  //stops the timer
    
if (time1==0) {            //checks to see if you've held the button down long enough
        
system.previous();  //if not, just acts like a normal button
        
time1=0;   //resets the counter
    
}

    
B1=0//sets the timer back to 0
    
a1=100;  //sets the seek speed back to 100

}

forward.onleftbuttondown(int xint y) {
    
buttontimer2.start();

}


forward.onleftbuttonup(int xint y) {
    
buttontimer2.stop();
    if (
time2==0) {
        
system.next();
        
time2=0;
    }

    
b2=0;
    
a2=100;

}

buttontimer1.ontimer() {

    if (
b1>=50) {    //checks to see if counter at bottom has reached 50 ms yet
        
time1=1;  //flag for the onbuttonup command so it knows what to do
        
p1=System.getposition();  //gets the current song position
        
p1-=a1;  //sets the position back by a1, which is currently 100
        
a1+=50;  //adds 50 to it, so the seekspeed increases
        
if (p1<=0) {  //if we get to the end of the song
            
System.previous();  //skip to the previous song
            
a1=100;  //resets the seeksepeed to 100 again
                        
p1=((System.getPlayItemLength() * 1000)-1); // gets the length of the song and goes to the end
            
system.seekto(p1);//starts seeking back again
            
system.play();  //triggers the play command to show the new song
        
} else {
        
system.seekTo(p1);   //otherwise, seek backwards
        
}
    }

    
b1+= 1;  //adds one to the counter
}

buttontimer2.ontimer() {

    if (
b2>=50) {
        
time2=1;
        
p2=System.getposition();
        
p2+=a2;
        
a2+=50;
        if (
p2>=System.getPlayItemLength() + 5) {
            
System.next();
            
a2=100;
            
p2=(0);
        } else {
        
system.seekTo(p2);
        }
    }
    
b2+=1;

JW is offline   Reply With Quote
Old 28th December 2004, 00:14   #679
leechbite
Major Dude
 
leechbite's Avatar
 
Join Date: Sep 2003
Location: Canada
Posts: 635
Send a message via Yahoo to leechbite
try doing this:

PHP Code:
back.onleftbuttondown(int xint y) {
    
time1=0;   //resets the counter
    
buttontimer1.start();  //starts the timer when you click down

}


back.onleftbuttonup(int xint y) {
    
buttontimer1.stop();  //stops the timer
    
if (time1==0) {            //checks to see if you've held the button down long enough
        
system.previous();  //if not, just acts like a normal button
    
}
    
time1=0;   //resets the counter

    
B1=0//sets the timer back to 0
    
a1=100;  //sets the seek speed back to 100

}

forward.onleftbuttondown(int xint y) {
    
time2=0;
    
buttontimer2.start();

}


forward.onleftbuttonup(int xint y) {
    
buttontimer2.stop();
    if (
time2==0) {
        
system.next();
    }
    
time2=0;

    
b2=0;
    
a2=100;


leechbite is offline   Reply With Quote
Old 28th December 2004, 00:49   #680
JW
Senior Member
 
Join Date: Nov 2004
Location: Valencia, CA
Posts: 304
Yep, that did it. Thanks!
JW is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump