Jump to content

Recommended Posts

Posted

I got a window that has three tabs. The first tab's List is hidden, as well as the third ones, but the second ones isn't. So when I use ControlListView I always get info from the second tab's window. How can I make the first tab's window not hidden so I can read from the window? All the tab's (seem to) have the same control ID's and classnames. I have tried to use controlShow but I guess it only affects Tab2 in my case...

Posted

I havent created the windows. I am trying to read from a normal program. Autoitinfo tells me the names of controls and such of the second tab. I'm not getting a "selection" on the other tab's window, so I am not sure of their names.

Posted

I ran into this when dealing with Driver Signing in XP.

(In Windows 2000, you can set driver signing policy in the registry, but in XP you have to use the System Properties GUI)

The controls on an inactive tab do not exist until you select that tab.

You may have to loop through the tabs using ControlSend...TabRight and look for identifying controls to make sure you're on the correct tab.

ControlSend($WinTitle, "", $TabControl, "TabRight", "")

Post the code you have so far and we can help you out.

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Posted

Well, I have no big code that needs looking into it I guess. I use

ControlListView("Window3", "", "SysListView321", "GetText", 1, 0)

To get the text from the first line. For example. If I manually select tab 3 and then run the code, it will give me first line of the listview in tab2, always.

Posted

I've had cases where AU3Info couldn't give me the proper control names because there were overlapping (hidden) controls.

Try manually switching to tab 3 and running:

MsgBox(0, "Classes", WinGetClassList("Window3", ""))

If you see multiple "SysListView32" entries here, then you may be grabbing the wrong one.

Have you tried "SysListView322" or "SysListView323", etc...?

If this doesn't help, why don't you describe the app you're automating?

It's possible that someone else has experience with it.

Good luck!

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Posted

I use

ControlListView("Window3", "", "SysListView321", "GetText", 1, 0)
According to your post, the window title was "Window3"...

That code gives me the message "1", whatever tab I select

WinGetClassList returned 1 (failed) because a window named "Window3" couldn't be found...

Are you sure this is the correct title?

What is the title of the window, and which WinTitleMatchMode are you using?

Can you post a screenshot of your app, along with the AU3Info output?

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Posted (edited)

Missed the case sense...

I get "SysTabControl32

#32770

Button

SysListView32

SysHeader32

Button

and then repeats it self three times. All outputs are the same for the three tabs. Au3info on tab3:

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

Size: X: 7 Y: 24 W: 497 H: 326

Control ID: 1018

ClassNameNN: SysListView323

Text: List1

(Control is hidden)

tab2:

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

Size: X: 7 Y: 24 W: 497 H: 326

Control ID: 1018

ClassNameNN: SysListView323

Text: List1

Edited by spanga
Posted

I get ... and then repeats it self three times.

Looks like you have multiple Lists...

Try getting the text of "SysListView322", "SysListView323", and "SysListView324" to see which one is the correct list.

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Posted (edited)

Just a quick question...

Is it possible to ControlClick ListView items so that they wille be double clicked? If so... how?

Edited by spanga
Posted

You should be able to specify the amount of clicks.

ControlClick ( "title", "text", controlID [, button] [, clicks]] )

I haven't tried double-clicking in this manner. Give it a shot!

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Posted

I've tested that. Can't see any difference in the amount of clicks. However, it won't open up my windows (done when doubleclick on an item)

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
  • Recently Browsing   0 members

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