![]() |
#161 |
Major Dude
|
I did this as a script a long time ago. Its currently broken I'll fix it up and post it tomorrow (not a promise though.)
|
![]() |
![]() |
![]() |
#162 |
Member
Join Date: Aug 2002
Posts: 58
|
chenzen....
this might help you, extract it to your Winamp3/Scripts directory & load it from Preferences..Add-Ons/Skin Mods |
![]() |
![]() |
![]() |
#163 |
Junior Member
|
thanx DirtyLowMoFo, this little piece of code was just what ive been looking for and couldnt figure out for myself. vu-meter is working.
btw, if you adjust the top- and bottom-values in the region-map from 255 to about 253 and anything above 0 then the bargraph hits the red region and shows nothing if there is no signal. i think that looks much nicer. (i let mine start at 20..) this timer-stuff has a really heavy CPU-usage. on my 400Mhz P2 musicmachine it rose from about 10% to sometimes more than 60%... |
![]() |
![]() |
![]() |
#164 |
Senior Member
|
![]()
//--------------------------------------------------------------------
// regionvolume.m // // Example of an volume slider using regions // based on the Animated Volume Script created by RhinoTrip (i think) // and FrisbeeMonkey's volume.m. // Special thanks to DirtyLowMoFo's Beat Meter for showing me how to use regions right. // // created by Da_Pipe //-------------------------------------------------------------------- // USING THIS SCRIPT: //******************************************************************** // 1. Define the following in your XML: // <layer id="Volume" image="player.layer.volume" x="?" y="?" w="?" h="?" move="0"/> // Change the position(x,y) and size(w,h) of "Volume" to the specifics // of your layer. // 2. Define your gradient map with your other elements using: // <bitmap id="player.map.volume" file="player/player-map-volume.png"/> // If you need help creating a map file, check: // http://www.stefanweb.com/wa3/tutorials.html#UsingMaps // 3. Make sure your ticker is called "SongTicker" and is in the same group as // "Volume". If you don't have a ticker, add one now. // 4. Copy this script (and volume.maki) to your scripts folder. // 5. If you don't have volume.maki, compile this script. // 6. Add this line to the group that contains your animated layer // <script id="regionvolume" file="scripts/regionvolume.maki"/> // 7. Refresh your skin(F5) and try it out. //******************************************************************** |
![]() |
![]() |
![]() |
#165 |
Major Dude
|
Try adjusting the delay of the timer, the higher the number, the less cpu usage.
|
![]() |
![]() |
![]() |
#166 |
Senior Member
|
ok fixed a bug with the Songticker, set the timer a little higher and got response to be a little better.
Blah! |
![]() |
![]() |
![]() |
#167 |
Senior Member
|
Seek Slider using regions
//-----------------------------------------------------------------------------
// regionseek.m // // Example of an Seekbar using regions // Based on the Animated Seek Script created by RhinoTrip and modified by // FrisbeeMonkey. // Special thanks to DirtyLowMoFo's Beat Meter for showing me how to use // regions right. // // modified by Da_Pipe //----------------------------------------------------------------------------- // USING THIS SCRIPT: //***************************************************************************** // 1. Define the following in your XML: // <layer id="Seek" image="player.layer.seek" x="?" y="?" w="?" h="?" move="0"/> // // Change the position(x,y) and size(w,h) of "Seek" to the specifics // of your layer. // 2. Define your gradient map with your other elements using: // <bitmap id="player.map.seek" file="player/player-map-seek.png"/> // If you need help creating a map file, check: // http://www.stefanweb.com/wa3/tutorials.html#UsingMaps // 3. Make sure your ticker is called "SongTicker" and is in the same group as // "Seek". If you don't have a ticker, add one now. // 4. Copy this script (and seek.maki) to your scripts folder. // 5. If you don't have seek.maki, compile this script. // 6. Add this line to the group that contains your animated layer // <script id="regionseek" file="scripts/regionseek.maki"/> // 7. Refresh your skin(F5) and try it out. //***************************************************************************** Blah! |
![]() |
![]() |
![]() |
#168 |
Senior Member
|
![]()
there was a problem with the script when it was first loaded, region wasn't applied correctly according to actual song position. fixed.
Blah! |
![]() |
![]() |
![]() |
#169 |
The Shark
(Forum King) |
Hello everyone
I have started trying to learn maki, and have made a script but it will not compile. I know i am doing something wrong but not what. Can someone please point me in the right direction? Heres the code: code: Thanx, HH |
![]() |
![]() |
![]() |
#170 |
Senior Member
|
had an extra bracket in System.onScriptLoaded(), orb.setAlpha; should be orb.setAlpha(x); where x is an int.
Blah! |
![]() |
![]() |
![]() |
#171 |
The Shark
(Forum King) |
Thanks Da_Pipe, but i am still having problems.
I have made a skin with the opacity slider. There are no errors, the image i want for opacity is there and goes off after abt a second. then the slider cannot regain its alpha! Please help me. Heres the skin |
![]() |
![]() |
![]() |
#172 |
Member
Join Date: Aug 2002
Posts: 58
|
hammerhead....
change timerGlassOpacityCheck.onTimer() { orb.setAlpha(x); //Command to reset alpha. } to timerGlassOpacityCheck.onTimer() { int x = Opacityslider.getPosition(); orb.setAlpha(x); //Command to reset alpha. } or timerGlassOpacityCheck.onTimer() { orb.setAlpha(Opacityslider.getPosition()); } |
![]() |
![]() |
![]() |
#173 |
The Shark
(Forum King) |
Ok thanks DirtyLowMoFo and Da_Pipe.
I have put up the script if anyone wants to use it. I cant believe it I coded my first .m and it works properly!! CELEBRATE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -------------------------------------------------------------------- Coded By HammerHead aka Kabir Chanrai Set right by Da_Pipe and DirtyLowMoFo Feel free to use this in your skin. Define your group, layout, and image id that will be opacified in the script. Define your group, layout, and slider id that will opacify in the script. Include this in your skin somewhere: <script id="alpha" file="scripts/alphaeditor"/> -------------------------------------------------------------------- |
![]() |
![]() |
![]() |
#174 |
The Shark
(Forum King) |
Ok I have tried to make another script (probably totally wrong maki wording
![]() It is supposed to stop/start songticker scrolling. Can anyone please correct my script? code: Thanks, HH |
![]() |
![]() |
![]() |
#175 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
Hey Hammerhead,
You can control the songticker's scrolling merely by changing its XML parameters. You can use: Songticker.setXMLParam("Ticker","0"); to turn it off, and: Songticker.setXMLParam("Ticker","1"); to turn it back on. Not sure what you want to do with that if/else you have going there, they are both the same? Perhaps you'd want to have a boolean that keeps track of it's on/off state? Hope this helps, ~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#177 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
You explained it fine. What I was suggesting was for your button.
buttonCheckBox.OnLeftClick() { if (ScrollOn) { //if scrolling, stop Songticker.setXMLParam("Ticker","0"); ScrollOn = 0; } else { //if stopped, turn on scroll SongTicker.setXMLParam("Ticker","1"); ScrollOn = 1; } } Where ScrollOn is a boolean that you declare globally. ~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#178 |
The Shark
(Forum King) |
Ok frisbeemonkey I have done everything you told me to, but there is an error somewhere in the script (it will not compile). Can you please correct it? Thanx, HH
code: |
![]() |
![]() |
![]() |
#179 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
Well, you're getting closer. You should make ScrollOn a Boolean, yet leave buttonCheckbox as a Button.
Also, your two System.getContainer lines should be inside onScriptLoaded(), not just floating out in the nether regions of your script. Also inside onScriptLoaded, you should set ScrollOn to whatever your skin defaults to(you could use getXMLParam or just set it to 1 or 0) ~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#180 |
The Shark
(Forum King) |
Frisbeemonkey, I (think) I have done everything you told me to in the maki, but it still does not seem to be compiling. Please Help!
code: Thanx, HH |
![]() |
![]() |
![]() |
#181 |
Junior Member
|
i just finished my VU-meter, so here is it to you.
some features i added to the basic code provided by [DirtyLowMoFo]: -> i put 3 layers of the vu on top of each other (each with different graphics, of course) which are loaded with the last and forelast values of the vu. so the display smoothes up. this consumes quite some cpu-power, but who cares, Mhz are getting cheaper by the day. ![]() -> there is a togglebutton, so if this thing consumes too much CPU (sometimes we've got other things to do than watch a VU going up and down..) - switch it off. -> and something simple: the vu listens to the systemsstatus. no song running, no timer running. no cpu usage. maybe i add something like a "going-down-slowly-on-stop"-function later. that would look really professional. i have one question left for now: when you start a song the VU makes a jump to full, then pauses for about half a second, and then starts to work. the same thing happens when you press resume some time after pause. if the pause-resume gap is quite short, the vu starts immediatly. does anyone know where this comes from? oh, by the way: the zip is a runnable version, so unzip to the \winamp3\scripts\ directory, go to the [preferences]-menu, choose [add-ons/skin-mods] and add the script.xml file from my zip. you can then right-click on your skin and open the VU-window. chenzen. |
![]() |
![]() |
![]() |
#182 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
Almost there. You want to initialize ScrollOn using this line though:
ScrollOn = StringToInteger(Songticker.getXMLParam("Ticker")); This takes the value of Ticker that you set in your XML, converts it to an integer, which Winamp can then convert to a boolean on its own. ~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#183 |
Member
Join Date: Aug 2002
Posts: 58
|
<edit> removed reply cause FrisbeeMonkey had Allready answered</edit>
|
![]() |
![]() |
![]() |
#185 |
The Shark
(Forum King) |
Frisbeemonkey, I still seem to be having problems with the script. It compiles fine but when loaded it gives the guru meditation error.
Heres my code and xml: Configure window XML [XML] <button id="songticker.scroll.toggle" image="player.mini.prev" x="28" y="342"/> <script id="songtickerstopscroll" file="scripts/songtickerstopscroll.maki"/> [/XML] Main Window XML [XML] <text id="songticker" display="songname" Ticker="1" x="150" y="78" w="184" h="24" font="otherfont" fontsize="16" antialias="1" align="left" alpha="100" color="0,0,0" timecolonwidth="7" /> [/XML] Script Code: code: Can you help please? |
![]() |
![]() |
![]() |
#186 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
Move the script inclusion outside your configure window container, preferably in a scripts.xml that you include in skin.xml after all your other files. If you don't already have a scripts.xml you'd add this line towards the bottom of skin.xml:
<include file="xml/scripts.xml"/> then create a new file called scripts.xml and add this to it: <scripts> <script id="songtickerstopscroll" file="scripts/songtickerstopscroll.maki"/> </scripts> That should get rid of your guru mediation. If not, doublecheck that you spelled everything right in you getContainer/Layout/Object functions. ~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#187 |
The Shark
(Forum King) |
Hmm.. its still not working and I have checked everything.
Also what happens is an 'assertion failed' window comes up, and so winamp closes. I think im just gonna put the skin up here. can you please correct it? Size: 477KB Download Remember to side click then press 'Save Target As' Bear in mind that the button to stop the songtickerscrolling is a cbutton that i used cos I couldnt be bothered to make a seperate button yet, and that the titlebar is not finished yet. There are some other bad things like that in the skin but check it out. Thanks, HH BTW it will produce a guru meditation error because of the Songtickerscript when you open it. |
![]() |
![]() |
![]() |
#188 |
Member
Join Date: Aug 2002
Posts: 58
|
hammerhead
change your .onScriptLoaded() to this System.onScriptLoaded() { group main = System.getContainer("main").getLayout("normal").getObject("player.normal.playbuttons"); Songticker = main.getObject("songticker"); buttonCheckBox = System.getContainer("configure").getLayout("normal").findObject("songticker.scroll.toggle"); ScrollOn = StringToInteger(Songticker.getXMLParam("Ticker")); } |
![]() |
![]() |
![]() |
#189 | |
The Shark
(Forum King) |
Quote:
|
|
![]() |
![]() |
![]() |
#190 |
Member
Join Date: Aug 2002
Posts: 58
|
hammerhead
I have it running on my desktop as I type this & clicking the button stops the scrolling..Strange it not working for you Did you replace all of onScriptLoaded() with what I put? because there was an error with the button part aswell. |
![]() |
![]() |
![]() |
#191 |
Junior Member
|
hi hammerhead & co.
maybe you should cross-check your winamp-builds. because i had some strange script-behavior between the official #488 and the #491 from the developers-section. seems like the #491 has had some nice bugfixes.. |
![]() |
![]() |
![]() |
#193 |
Member
Join Date: Aug 2002
Posts: 58
|
hammerhead
I'm attaching the script I have working. BTW it works on build 488 & 491 but on 491 when closing Winamp it causes Invalid Page Fault (maybe just my POS pc) |
![]() |
![]() |
![]() |
#194 |
Junior Member
Join Date: Sep 2002
Location: Germany
Posts: 35
|
Hello again :)
Here goes another stupid question,I have the same issue with the different WA3 builds,my problem is the following, i have coded my skin using the 490 build,everything worked fine,but to get sure that WA3 official release users get the same effect i have tried to load my skin with the 488 build,and there it was a big BUG saying : "OOPS a Component is missing",my skin has loaded but the Script for the Visanimation wasn`t working anymore.
The skin or better the vis script works fine with 490 and 491 but not with 488,i wanted to get sure if this is a general WA3 488 Bug or if i can do something that the script also works under 488. So here`s the Code of a simple Png-changer: ______________________________________________________________________ #include "../../../lib/std.mi" Global Button myButton; Global int mode; Global AnimatedLayer animation; /* WILDCORE 1K1 WS The fuction to change the "movie " just clicking the AnimatedLayer is working. To the same function for the button, uncomment the line myButton = ContentGrp.getObject("Button_id"); ("Button_id" is the button id of your button that will execute the function.) and the function "myButton.onLeftClick()" So, recompile this file. */ System.onScriptLoaded() { Group ContentGrp = getScriptGroup(); animation = ContentGrp.getObject("visanimation"); // myButton = ContentGrp.getObject("Button_id"); mode = 1; } // you can change to another "movie" by whether clicking the Animated Layer animation.onLeftButtonDown(int x, int y){ mode++; if (mode == 7) mode = 1; if (mode == 1) animation.setXMLParam("image", "visanimation"); if (mode == 2) animation.setXMLParam("image", "visanimation2"); if (mode == 3) animation.setXMLParam("image", "visanimation3"); if (mode == 4) animation.setXMLParam("image", "visanimation4"); if (mode == 5) animation.setXMLParam("image", "visanimation5"); if (mode == 6) animation.setXMLParam("image", "visanimation6"); } /* // you can change to another "movie" by whether clicking the button myButton.onLeftClick() { mode++; if (mode == 7) mode = 1; if (mode == 1) animation.setXMLParam("image", "visanimation"); if (mode == 2) animation.setXMLParam("image", "visanimation2"); if (mode == 3) animation.setXMLParam("image", "visanimation3"); if (mode == 4) animation.setXMLParam("image", "visanimation4"); if (mode == 5) animation.setXMLParam("image", "visanimation5"); if (mode == 6) animation.setXMLParam("image", "visanimation6"); } */ ______________________________________________________________________ Thnx in advance for any help ![]() |
![]() |
![]() |
![]() |
#195 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
I forget who suggested this in another thread, but I think if you compile your scripts using the mc.exe that comes with #488, it should work for both 488 and 490/1 users.
~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#196 |
Junior Member
Join Date: Sep 2002
Location: Germany
Posts: 35
|
![]()
Interesting aspect,D`oh, it`s simple, but it`s easier to whine and cry in a forum thread
![]() Thnx FrisbeeMonkey |
![]() |
![]() |
![]() |
#197 |
f(caffeine){
return wasabi; } (Forum King) Join Date: Jul 2001
Location: Sweden
Posts: 3,984
|
To make sure your skin will work for both 488 and 490/491, build the skin on 491 but use mc.exe from 488..
cos there are more things than just maki that can stop the skin from working on 491... -Plague |
![]() |
![]() |
![]() |
#199 |
The Shark
(Forum King) |
Hello again everyone
hmm, seems like i have run into another scripting prob. I am trying to make a script that changes the vis to off by a button. I have made an attempt at the script, but as usual it doesnt work. Can someone please help with it? code: Thanks, hh |
![]() |
![]() |
![]() |
#200 |
f(caffeine){
return wasabi; } (Forum King) Join Date: Jul 2001
Location: Sweden
Posts: 3,984
|
if you look in the tips and tricks thread, I have already made such a script..
-Plague |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|