Jump to content

CLASS: HwndWrapper not working?


Tiax
 Share

Recommended Posts

Hi,

I have the following window:

>>>> Window <<<<

Title:

Class: HwndWrapper[sewmain.exe;;e407155a-3d68-4e3d-927c-3d298e0968fa]

Position: 20, 46

Size: 600, 358

Style: 0x16080000

ExStyle: 0x000C0000

Handle: 0x00070220

>>>> Control <<<<

Class:

Instance:

ClassnameNN:

Advanced (Class):

ID:

Text:

Position:

Size:

ControlClick Coords:

Style:

ExStyle:

Handle: 0x000100E0

>>>> Mouse <<<<

Position: 242, 185

Cursor ID: 2

Color: 0x000000

>>>> StatusBar <<<<

>>>> Visible Text <<<<

>>>> Hidden Text <<<<

How come I can't use WinWaitActive("[CLASS:HwndWrapper]", "") when I open it?

Link to comment
Share on other sites

Window wrappers are a little bit weird in this respect. You probably want to wait if the window that is being wrapped is active, or check if the window wrapper is not using MDI and is contained by another form.

Really appreciate the fast answer!

Don't follow 100% though, care to explain?

The window popping up is a custom window not containing any real controls, the way I solved it now is to wait 5 sec and then input text and then send a enter key. But as you can understand I would like to do it in a more appropriate way. I mean if the computer is busy for some reason and the GUI doesn't appear in 5 sec I'm screwed.

Link to comment
Share on other sites

Ugh.. I see what you're doing wrong now (a fast answer is not always the best). I thought this problem was more complicated.

The window class is: HwndWrapper[sewmain.exe;;e407155a-3d68-4e3d-927c-3d298e0968fa]

It's not: HwndWrapper.

By default it doesn't do a partial match. Try using [REGEXPCLASS:HwndWrapper.*]

Edited by Manadar
Link to comment
Share on other sites

Ugh.. I see what you're doing wrong now (a fast answer is not always the best). I thought this problem was more complicated.

The window class is: HwndWrapper[sewmain.exe;;e407155a-3d68-4e3d-927c-3d298e0968fa]

It's not: HwndWrapper.

By default it doesn't do a partial match. Try using [REGEXPCLASS:HwndWrapper.*]

Worked!

Thanks a lot!

Link to comment
Share on other sites

No problem. Glad we resolved this within 20 minutes. :evil: That is better then what most professional companies can offer.

I just crawled and found this post, I had to laugh ;) hehe. I gave you a point as it was funny response and the fact you actually resolved the matter

Link to comment
Share on other sites

  • 1 year later...

I have a problem like this, but the solution doesn't work to me.

I would like to control "Iphone Configuration Utility", but when I use Wingetclasslist, I don't get an @error failure, but I the function returns nothing.

Maybe it's a bug, maybe autoit can't read it at all.

Many times you need to think like hobby-bob:')

Link to comment
Share on other sites

I have a problem like this, but the solution doesn't work to me.

I would like to control "Iphone Configuration Utility", but when I use Wingetclasslist, I don't get an @error failure, but I the function returns nothing.

Maybe it's a bug, maybe autoit can't read it at all.

Perhaps there are no controls on the window. Can you post the output from the summary tab in the AutoIt Window Info tool?
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...