Jump to content

Recommended Posts

Posted (edited)

Hi @JohnTWI, and welcome to the AutoIt forums :welcome:

If you look in the Help file, you'll find a ton of functions to interact with a ListView.

Take a closer look to GUICtrlGetHandle(), ControlListView(), and _GUICtrlListView_* functions.

Then, if you are trying to interact with an external application, there is a tool called AutoItWindowInfoTool which helps you out to find more information about the Window/Controls you want to interact with.

Post your script if you need more assistance :)

Edited by FrancescoDiMuro

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Posted

FrancescoDiMuro thank you for the feedback.

I have an additional question.

I am trying to Loop though each row in the SysListView32.
The pasted example below only launches one of the rows in the Listview, I need to click on each row in the Listview:


#include <GUIListView.au3>

$hListView = ControlGetHandle("EMR Print by Account Number","","SysListView321") ;Your listview handle here
_GUICtrlListView_ClickItem($hListView,1,"right",False,2)

Posted (edited)

You'll want to use a variable to access the individual items in the List view. You can loop from 0 to _GUICtrlListView_GetItemCount's return value and click in each item :)

Edit: Row = item when you're looking at the _GUICtrlListView* functions

Edited by seadoggie01

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

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...