Window cycling test, curious results

"freedeanna" <[email protected]>
Newsgroups gmane.comp.windows.gui4cli
Message-ID <[email protected]>
Fer, your window check question inspired me to try that idea of cycling through all windows. I finally got some controlled output without clicking on buttons and such, but it gives curious output. I was expecting a list of "gui4cli:Post Message - Mozilla Firefox", "Gui4Cli Help" and a bunch of other open and visible windows, as well as some system windows and stuff I don't expect to recognise. Instead all I get is a list...well, see below. Hardly any $$win.text (the caption, I thought), and just one visible window with no dimension. It kind of goes into a loop after some different ones to start with.

All I can think is that the current window is being changed by other programs. Yet the output doesn't seem to change when I do all sorts of other things. Any thoughts? About the only window text I recognise is my Powerdesk Toolbar, which has the right dimensions.

G4C WINDOWS_TEST

WINDOW 50 30 300 200 "WINDOWS_TEST gui"
	WinAttr style resize

xOnLoad
	gcwin open
	GuiOpen #this
	use win #first
	say "\nHandle: $$win.handle\nText: $$win.text\n$$win.left $$win.top $$win.width $$win.height $$win.visible"

// loop windows without clicking, allow escape by closing win.
xtimer pulse 1 sec on
	use win #next
	say "\nHandle: $$win.handle\nText: $$win.text\n$$win.left $$win.top $$win.width $$win.height $$win.visible"

xOnClose
	GuiQuit #this
//////////////////////////

OUTPUT

 

Handle: 65932
Text: TF_FloatingLangBar_WndTitle
528 0 197 26 0

Handle: 65934
Text: CiceroUIWndFrame
200 200 200 200 0

Handle: 8193796
Text: 
103 145 155 15 0

Handle: 29232106
Text: 
305 184 0 0 0

Handle: 65878
Text: 
0 0 0 0 1

Handle: 65674
Text: 
437 553 119 17 0

Handle: 11077366
Text: 
0 104 0 0 0

Handle: 23659786
Text: 
0 104 0 0 0

Handle: 592772
Text: 
169 79 0 0 0

Handle: 197362
Text: M
0 0 0 0 0

Handle: 66304
Text: Default IME
0 0 0 0 0

Handle: 2359768
Text: 
44 58 768 404 0

Handle: 13107362
Text: 
146 573 95 17 0

Handle: 2556374
Text: 
22 29 768 404 0

Handle: 2032128
Text: 
793 570 76 17 0

Handle: 328526
Text: 
58 550 80 17 0

Handle: 66318
Text: 
22 29 768 404 0

Handle: 66306
Text: PowerDesk Toolbar
0 518 1024 52 0

Handle: 197362
Text: M
0 0 0 0 0

Handle: 66304
Text: Default IME
0 0 0 0 0

Handle: 2359768
Text: 
44 58 768 404 0

Handle: 13107362
Text: 
146 573 95 17 0

Handle: 2556374
Text: 
22 29 768 404 0

Handle: 2032128
Text: 
793 570 76 17 0

Handle: 328526
Text: 
58 550 80 17 0

Handle: 66318
Text: 
22 29 768 404 0

Handle: 66306
Text: PowerDesk Toolbar
0 518 1024 52 0

Handle: 197362
Text: M
0 0 0 0 0




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gui4cli/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/gui4cli/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.