Jump to content
Sign in to follow this  
Tidetracker

Selecting objects in a SysListView32 control

Recommended Posts

Tidetracker

OK, I think I'm closing in, a little on my problem which I first described in a previous thread.

The problem is really about selecting objects in a Windows 'SysListView32' control, which is similar to trying to open up the Control panel, and selecting an icon, before the icons are actually there.

Just like that example, the control opens with a 'searching flashlight' animated icon... and after a while (10-30 seconds, in the case of a Bluetooth device), the bluetooth icon appears, with the name of the device next to it. Normally, one would have to click on the icon to highlight it before the 'next' button in the Wizard becomes active (see this picture... it shows the icon AFTER I have manually clicked on it)

Posted Image

Using the AutoIt V3 Windows Info tool, I don't see any properties associated with the icon itself, whether clicked or not clicked... all the Info tool shows me is [CLASS:SysListView32; INSTANCE 1] which appears to refer to the control itself, not the icons within it.

So, the presumption is that I have to move the cursor to the icon, and execute a MouseClick... but, I can't do it until the icon actually appears, or else the script stalls.

Is there any way to identify the existence of the icon within the control, so I can wait until it appears before clicking it?

Share this post


Link to post
Share on other sites
Zobengrauzis

maybe u can try getting around with PixelSearch in the control

or i guess u even could test/try out a image search in that area @ http://www.autoitscript.com/forum/index.php?showtopic=65748&hl=image%20search&st=0

Share this post


Link to post
Share on other sites
PsaltyDS

Learn to use the ControlListView() function (i.e. "GetItemCount"), or the _GuiCtrlListView_* functions of the GuiListView.au3 UDF (i.e. _GUICtrlListView_GetItemCount())_.

(See help file.)

:mellow:


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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.