Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-19-2008, 03:52 AM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default Controlling other windows? *URGENT*

Specifically hiding and showing them
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 10:27 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Controlling other windows? *URGENT*

First please use the "find" method or the "getWindowsByName" method to find the target windows, then you can use the "hide" or "show" method to hide or show them.
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 02:11 PM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default Re: Controlling other windows? *URGENT*

Is this for only child windows? Or the windows of other applications?
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 02:16 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Controlling other windows? *URGENT*

Both methods can be used to look for windows belong to any application.
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 03:02 PM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default Re: Controlling other windows? *URGENT*

Okay, this is my script:

Code:
var wnd = Window.find(FlashPlayer.getVariable("windowname"));
wnd.hide();
It's not working? :'( ???
Reply With Quote
  #6 (permalink)  
Old 01-20-2008, 12:05 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Controlling other windows? *URGENT*

try this code

Code:
var wnd = Window.find(FlashPlayer.getVariable(windowname));
wnd.hide();
Reply With Quote
  #7 (permalink)  
Old 01-20-2008, 12:47 AM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default Re: Controlling other windows? *URGENT*

I changed the code to:

Code:
var wnd = Window.find(FlashPlayer.getVariable("_root.windowname.text"));
wnd.hide();
But it only works with:
Shell_TrayWnd
Reply With Quote
  #8 (permalink)  
Old 01-24-2008, 01:46 PM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default Re: Controlling other windows? *URGENT*

So.....No reply must mean It can't control other windows, just find them. Am I right???!!!
Reply With Quote
  #9 (permalink)  
Old 01-24-2008, 05:36 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Controlling other windows? *URGENT*

No, you can control other windows, but you will have to first find the window. The "find" method has two arguments, the first one is the class name of the target window, and the second one is the caption of the window. "Shell_TrayWnd" is the class name of the task bar. If you want to find by window name, you can do as follows
Code:
var wnd = Window.find(null, "Untitled - Notepad");
Reply With Quote
  #10 (permalink)  
Old 01-25-2008, 02:54 AM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default Re: Controlling other windows? *URGENT*

Thank you very very very very very very much!!!!!!!!!!!!

I want Window.getWindowByName() to list a the windows on the desktop, but instead I get lots of "Window Object" traces.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:53 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.