Jump to content

Odd Problem -- WinList Not Working


Recommended Posts

When I iterate through the contents of WinList(), one of my windows is missing. It is active and visible, and when it use "Au3Info.exe" on it, it correctly displays the window title, class, dimensions, etc.

However, if I use WinList and iterate through every single window it returns, the window in question is nowhere to be found. Likewise, if I use WinWait(), the function simply hangs forever, even though the window it is waiting for clearly exists.

How is this possible?

Thanks,

gm

Link to comment
Share on other sites

try using the example from the help file :(

if this don't work the maybee the window is specially hidden to

functions like winlist to prevent access to it by programs :shocked:

$var = WinList()

For $i = 1 to $var[0][0]
  ; Only display visble windows that have a title
  If $var[$i][0] <> "" AND IsVisible($var[$i][1]) Then
    MsgBox(0, "Details", "Title=" & $var[$i][0] & @LF & "Handle=" & $var[$i][1])
  EndIf
Next

Func IsVisible($handle)
  If BitAnd( WinGetState($handle), 2 ) Then 
    Return 1
  Else
    Return 0
  EndIf

EndFunc

Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

Link to comment
Share on other sites

alex,

yes, i already tried using the help file example. I also tried taking out the visible and active filter just to be sure -- still no luck.

how could a program make itself invisible to WinList?

also, if a program did attempt to hide itself like that, why is it still visible to au3Info.exe?

Thanks,

gm

Link to comment
Share on other sites

Post what you are getting from AuotItInfo.

:shocked:

Press CTRL-ALT-F to freeze the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: VIP Lounge

Class: #32770

Size: X: 576 Y: 468 W: 447 H: 263

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 829 Y: 487

Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0x0060F9 Dec: 24825

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size:

Control ID:

ClassNameNN:

Text:

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

Link to comment
Share on other sites

bump.... any one have any ideas here?

Not me. The AutoItInfo data wasn't as helpful as I had hoped. No idea what your problem is.

Maybe you could describe this "VIP Lounge" window some more? What is it? What program does it belong to? What do you normally do with it?

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Not me. The AutoItInfo data wasn't as helpful as I had hoped. No idea what your problem is.

Maybe you could describe this "VIP Lounge" window some more? What is it? What program does it belong to? What do you normally do with it?

:)

It's an installer window for some casino software that I use alot. Basically there are a handful of casinos that use the same software type, and I am trying to automate the installation process so I can install them on the 3 computers I use and save myself a bit of time, and get some more practice with autoIt coding too. Anyway, I noticed the problem right off the bat and it was so strange I figured I'd post about it. Basically, it is just like any other windows window... except the autoIt functions can't detect it for some reason.... very odd.

Thanks,

gm

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...