View Single Post
Old 16th January 2003, 23:41   #28
iPlayTheSpoons
Major Dude
 
iPlayTheSpoons's Avatar
 
Join Date: Aug 2001
Location: SJSU
Posts: 1,030
Send a message via AIM to iPlayTheSpoons
the quick answers:...ummm, its not true that maki stops working if you select another window. for example, drawers that operate with the onEnterArea command still work. to see if winamp is in focus, you use System.isAppActive(); and it returns a boolean 1 focused, 0 unfocused. combining this with a timer should allow you to do whatever it is you want to do. heres a mockup up of one way to do that

code:


System.onScriptLoaded(){

MainContainer = getContainer("main");
Layout NormalLayout = MainContainer.getLayout("normal");

ButtonsGroup = NormalLayout.getObject("Buttons");
MinimizeButton = NormalLayout.getobject("minimize");

minTimer = new Timer;
minTimer.setDelay(100);
minTimer.start();
}


minTimer.onTimer() {
if(System.isAppActive() == 0)
minimizebutton.LeftCLick();
}



something like that should do you fine

ill do a full on tut on how to do custom vis if hammer heads isnt what youre looking for.

Last edited by iPlayTheSpoons; 17th January 2003 at 01:46.
iPlayTheSpoons is offline   Reply With Quote