JVPK Posted April 1, 2010 Share Posted April 1, 2010 Hi I am using AutoIt for automating some repetitve QA tasks. I have used it very little so far... Creating a GUI? Piece of cake, getting it to do anything is proving to be the hard part. I want to take version A read a file into it save as [with a version # added to the filename] and then open version B of the application to see if it will open and contains certain data components. This I have done OK exept for adding the #'s to the filename. My problem is getting the version number of the software. We change the version number nitely at least and I could be comparing compatability with any version. Now in the 'About' box there is all the information I need. The text string I require is listed by AutoIt v3 Window Info as Class: Static, Instance 1, ClassnameNN Static1 and ID 1325. The Text listing there contains everything I need. What I am struggling with is actually getting some data into that string... I seem to end up with 0 or nothing. This is how I have tried to grab it. $version = ControlGetText("About AxCent","",1325) $version = ControlGetText("About AxCent","","[iD:1325]") $version = ControlGetText("About AxCent","","[Class:Static;Instance:1]") I have also tried GUICtrlRead but didn't think this was for GUI's from other apps And then to display its value for debugging I was using: msgbox (0, "Axcent version", $version) So where am I going wrong, the grab or the msg box display? Thanks - John Link to comment Share on other sites More sharing options...
KaFu Posted April 1, 2010 Share Posted April 1, 2010 Maybe first take a look at the FileGetVersion() function, might be easier if the info is maintained correctly in the target app ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
JVPK Posted April 1, 2010 Author Share Posted April 1, 2010 That simple huh!? That works for me - 1/2 the battle is knowing what to look for! Thanks John Link to comment Share on other sites More sharing options...
KaFu Posted April 1, 2010 Share Posted April 1, 2010 Glad to hear , don't hesitate to come back to ask... that's what this forums for ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
zorphnog Posted April 2, 2010 Share Posted April 2, 2010 Depending on the application it might be in the registry as well. 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