Jump to content

GUI Functions/getting values from outside applications

Recommended Posts

First question - are the GUI functions (i.e. GUICtrlRead) only used for GUI's you create with AutoIt? Or can they be used with other software that other people have made?

Basically I'm trying to automate a test precedure and test wether drop down boxes, check boxes, etc.. will save properly after being changed. So, is there a way to read values or the status of these drop downs etc.?

I've read about this a little and have used the Info Tool, but, it doesn't give a 'control ID' and the 'handle' always changes.

Thanks for any help,


Link to post
Share on other sites
  • Moderators


Welcome to the AutoIt forum. :)

The native GUICtrl* functions only work on controls created by the native GUICtrlCreate* functions within your own AutoIt GUI. However, the _GUICtrl[Control+Type]_* (note leading underscore) functions within the UDFs will work on third party apps as well (as long as they are created with the standard Windows API calls) - you can also use the Control* functions to interact with other GUIs. ;)

Look in the Help file under <User Defined Function Reference> to see all the possibilites - and under <Using AutoIt - Window Titles and Text (Advanced)> to see how you can use the information from the Window Info tool to identify these controls . ;)


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


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

    No registered users viewing this page.

  • Create New...