Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 5th May 2005, 10:30   #1
Kebabrov
Senior Member
 
Join Date: Jul 2004
Posts: 175
How to determine when Video+Vis windows open and close

Heya,

Does anyone know what events need to be hooked to find out when the Video and Vis windows opened and closed?

I've been searching through the winamp moderns maki scripts and i couldnt see anything obvious.

Thanks
Kebabrov is offline   Reply With Quote
Old 5th May 2005, 20:53   #2
iPlayTheSpoons
Major Dude
 
iPlayTheSpoons's Avatar
 
Join Date: Aug 2001
Location: SJSU
Posts: 1,030
Send a message via AIM to iPlayTheSpoons
code:
System.onGetCancelComponent(String guid, boolean goingvisible)
{
//Media Library
if(guid == "{6B0EDF80-C9A5-11D3-9F26-00C04F39FFC6}")
{
if(!goingvisible)
{
return TRUE;
}
if(goingvisible)
{
return TRUE;
}
}
//PlayList
else if(guid == "{45F3F7C1-A6F3-4EE6-A15E-125E92FC3F8D}")
{
if(!goingvisible)
{
return TRUE;
}
if(goingvisible)
{
return TRUE;
}
}
//Video
else if(guid == "{F0816D7B-FFFC-4343-80F2-E8199AA15CC3}")
{
if(!goingvisible)
{
return TRUE;
}
if(goingvisible)
{
return TRUE;
}
}
//Visualizer
else if(guid == "{0000000A-000C-0010-FF7B-01014263450C}")
{
if(!goingvisible)
{
return TRUE;
}
if(goingvisible)
{
return TRUE;
}
}
else {}
}



returning 0 (FALSE) will prevent the action, but only works sometimes. return 1 (TRUE) allows it to go ahead.
iPlayTheSpoons is offline   Reply With Quote
Old 5th May 2005, 23:43   #3
Kebabrov
Senior Member
 
Join Date: Jul 2004
Posts: 175
does onGetCancelComponent occur when a window opens aswell? so is 'goingvisible' true when a window opens?

ta
Kebabrov is offline   Reply With Quote
Old 6th May 2005, 00:01   #4
iPlayTheSpoons
Major Dude
 
iPlayTheSpoons's Avatar
 
Join Date: Aug 2001
Location: SJSU
Posts: 1,030
Send a message via AIM to iPlayTheSpoons
yes
iPlayTheSpoons is offline   Reply With Quote
Old 9th May 2005, 10:27   #5
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
The function name actually is two things, OnGetComponent and OnCancelComponent, but merged together to form OnGetCancelComponent and uses a second parameter to distinguish Get/Cancel behaviour.
saivert is offline   Reply With Quote
Old 9th May 2005, 14:00   #6
Kebabrov
Senior Member
 
Join Date: Jul 2004
Posts: 175
ah right. when i first skimmed through Single GUI maki's, i was confused at how it detected stuff being opened.

i was plannin to tweak a few things in the SingleGUI skin, but it seems another person got there first. (Probably a good thing too, since i've never made any skins before )

cheers all
Kebabrov is offline   Reply With Quote
Old 9th May 2005, 15:52   #7
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
And MAKI looks a lot like C++ in more than one way. I think it's a cross between all C based languages (C, C++, JavaScript, Java, C sharp). SO you do have to know some programming to feel instantly familiar with it.
saivert is offline   Reply With Quote
Reply
Go Back   Winamp 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