wriggerz Posted July 12, 2006 Share Posted July 12, 2006 I'm new to AutoIT and can't figure out how to select an item from a listbox.I want my script to select the CM Viewer option from this screen.Can anyone offer any help? it would be greatly appreciated Link to comment Share on other sites More sharing options...
gamepin126 Posted July 12, 2006 Share Posted July 12, 2006 (edited) ControlClick() or ControlCommand() might do it. Hover your mouse while running Au3Info.exe Edited July 12, 2006 by gamepin126 Link to comment Share on other sites More sharing options...
Bert Posted July 12, 2006 Share Posted July 12, 2006 What happens when you use shift and tab? Also, if that works, you can use a PixelGetColor to check to see if what you want is highlighted. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
wriggerz Posted July 12, 2006 Author Share Posted July 12, 2006 This is the info i get back. It doesn't show it in the "Visible Window Text" section. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Daisy v1.5.0.2 Class: #32770 Size: X: 541 Y: 91 W: 453 H: 387 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 374 Y: 618 Cursor ID: 5 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xD4D0C8 Dec: 13947080 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: Control ID: ClassNameNN: Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< Listed below are the DDS applications available for installation on your workstation. If an application has already been installed, the installed version of that application is also indicated. You may install, upgrade, verify, or remove DDS applications, or create new desktop shortcuts for installed DDS applications. Application Available Version Installed Version Application Info CM Viewer The DDS 3270 terminal emulator Install... Remove... Create Icon Options... Close Verify >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< Link to comment Share on other sites More sharing options...
wriggerz Posted July 12, 2006 Author Share Posted July 12, 2006 What happens when you use shift and tab? Also, if that works, you can use a PixelGetColor to check to see if what you want is highlighted.Shift and tab - tabs along the bottom buttons "install..." "Options..." "Close" Link to comment Share on other sites More sharing options...
Skruge Posted July 12, 2006 Share Posted July 12, 2006 What does Au3Info tell you the ClassNameNN is when you mouse over the list? If it's a standard ListBox or ListView you can use the beta functions in GuiList.au3 and GuiListView.au3. If not, you'll have to automate keystrokes/mouse movements. [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
wriggerz Posted July 12, 2006 Author Share Posted July 12, 2006 What does Au3Info tell you the ClassNameNN is when you mouse over the list?If it's a standard ListBox or ListView you can use the beta functions in GuiList.au3 and GuiListView.au3.If not, you'll have to automate keystrokes/mouse movements.The ClassNameNN = ListBox1Where can i obtain GuiList.au3 and GuiListView.au3? Link to comment Share on other sites More sharing options...
GaryFrost Posted July 12, 2006 Share Posted July 12, 2006 The ClassNameNN = ListBox1Where can i obtain GuiList.au3 and GuiListView.au3?Check out the beta version. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
wriggerz Posted July 12, 2006 Author Share Posted July 12, 2006 ok got the beta version where i found GuiList.au3 and GuiListView.au3. Any idea where i should start with the command? Link to comment Share on other sites More sharing options...
GaryFrost Posted July 12, 2006 Share Posted July 12, 2006 try the function _GUICtrlListSelectIndex you'll need to get the handle to the listbox 1s tho (ControlGetHandle) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
wriggerz Posted July 12, 2006 Author Share Posted July 12, 2006 try the function _GUICtrlListSelectIndexyou'll need to get the handle to the listbox 1s tho (ControlGetHandle)How do you do get the handle? Link to comment Share on other sites More sharing options...
Skruge Posted July 12, 2006 Share Posted July 12, 2006 How do you do get the handle?Gary suggested that you use ControlGetHandle.$hListBox = ControlGetHandle("Daisy", "", "ListBox1")Please read the helpfile and familiarize yourself with these functions. [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] 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