poematrix Posted August 10, 2009 Share Posted August 10, 2009 Hi. Here is a short version of what I need to do. I must wait for a 3rd party application to be launched. When the user accesses a specific window in that application, he may click a speeddbutton "Find Items". If so, I want to read the content of a combobox that is located on the same window. I.e. when speedbutton "Find Items", with handle value 0x00280BAA is clicked, then I want to read the text of the combobox, whose handle value is 0x000F0D12. Can I do this with AutoIt? Is there a better way to accomplish the above? Which functions of AutoIt do I need utilize to accomplish this one way or another? Are there examples that demonstrate some or all of the above functionality? If so, where do I find these specific examples? If I must use coordinates instead of handles, what do you recommend that I do, in order to make the program run on different machines with different screen resolutions (assuming I cannot control the screen resolutions)? I am assuming that the handle values are allocated relative to the application and are constant, if the program or even the computer are shut down, and restarted, or even if the program is running on a different computer altogether, provided that in all cases these cases the same operating system, XP, is being used. Assuming that the handle values were consistent over a few tests, is this something that I can rely on permanently? Thank you for all and any answers, pointers, etc. Elan Link to comment Share on other sites More sharing options...
water Posted August 10, 2009 Share Posted August 10, 2009 I think this should be possible using ProcessExist to wait for the application to be startet, WinWait to wait for the specific window and WinGetHandle/GUICtrlGethandle to get the handle of the window/control you need. AFAIK you can't rely on the handles to be constant. Therefore you need to use the xxGethandle functions. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
poematrix Posted August 10, 2009 Author Share Posted August 10, 2009 Hi "water". Thanks a lot for your rapid response. This is the information I was looking for. Now - with the help of AutoIt's great help file and example programs - I think I should be able to do my work quite easily. One more tip for anyone that may follow this thread in the future: If you go to the entry for "ControlGetHandle" ("Window Management"->"Controls") in the AutoIt3 helpfile, and you click on the "See Controls" link, you will get a very informative discussion of controls and how to interact with them. Thanks again to "water" and the AutoIt team. AutoIt is truly a brilliant program. Elan Link to comment Share on other sites More sharing options...
water Posted August 11, 2009 Share Posted August 11, 2009 Glad to be of service >_ My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki 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