Sam137 Posted June 3, 2011 Share Posted June 3, 2011 Hello I am a newbie to this AutoIt. I have a window named "current Litings". In the window i have n reports, on which i want to find and select and open the particular report "12a (3M) Core Measures Referral List". how to do that? Please help. Link to comment Share on other sites More sharing options...
smartee Posted June 3, 2011 Share Posted June 3, 2011 hi Sam137,Firstly, Welcome to the AutoIt forums!! Here's the AutoIt Wiki, a great resource if you wish to become proficient in AutoIt in no time.Also, here's some forum guidelines(very short) in case you missed it:)Ok, back to business , With respect to your question, try using the AutoIt Window Info tool and search the help-file for the Control*() functions Happy coding ,-smartee Link to comment Share on other sites More sharing options...
Sam137 Posted June 3, 2011 Author Share Posted June 3, 2011 hi Sam137,Firstly, Welcome to the AutoIt forums!! Here's the AutoIt Wiki, a great resource if you wish to become proficient in AutoIt in no time.Also, here's some forum guidelines(very short) in case you missed it:)Ok, back to business , With respect to your question, try using the AutoIt Window Info tool and search the help-file for the Control*() functions Happy coding ,-smarteeI have searched and could not know how to proceed with?? Please help Link to comment Share on other sites More sharing options...
Sam137 Posted June 3, 2011 Author Share Posted June 3, 2011 For this requirement, i coded like this.... but nothing is happening... please help #Include <GuiListView.au3> $gametype = "12a (3M) Core Measures Referral List" $opts = "12a (3M) Core Measures Referral List" ;$opts = "Large" $chnd = ControlGetHandle("Current Listings", "", "SysListView322") For $i = controllistview ("Current Listings", "", "SysListView322", "GetItemCount") to 1 step -1 $txt = controllistview ("Current Listings", "", "SysListView322", "GetText", $i, 2) if $txt = $gametype Then $txt = controllistview ("Current Listings", "", "SysListView322", "GetText", $i, 4) if $txt = $opts Then ;~ controllistview ("Current Listings", "", "SysListView322", "Select", $i) _GUICtrlListView_SetItemSelected($chnd, $i) _GUICtrlListView_ClickItem($chnd, $i) msgbox (0, "", "Found and selected item!") WinActivate ("Current Listings") quitnow () endIf endIf Next Link to comment Share on other sites More sharing options...
smartee Posted June 4, 2011 Share Posted June 4, 2011 Hmm, maybe a bit more info about the window/program you're trying to automate will help us help you Some screenshots of the window with Autoit Window Info perhaps? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now