kennyszub Posted May 30, 2012 Share Posted May 30, 2012 Hi everyone, I'm using AutoIt to try to automate the use of a program called PhotoZoom 4. I'm running into a problem where I need to type text into a box where this is the Class and instance: [CLASS:wxWindowNR; INSTANCE:8] I've tried the following with no luck (each line is a separate attempt): ControlSetText($batchWindowTitle2, "", "[CLASS:wxWindowNR; INSTANCE:8]", '800') ControlCommand($batchWindowTitle2, "", "[CLASS:wxWindowNR; INSTANCE:8]", "AddString", '800') ControlClick($batchWindowTitle2, "", "[CLASS:wxWindowNR; INSTANCE:8]", "left", 1, 32, 12) Send("800") I expected either ControlCommand or ControlSetText to work at least, but they didn't. I googled this problem as well, but could find literally no references of "wxWindowNR" anywhere on the web. I'll attach a photo of the control. I would really appreciate the help. Thanks! Link to comment Share on other sites More sharing options...
PhoenixXL Posted May 31, 2012 Share Posted May 31, 2012 (edited) Did u try with controlsend and also try with controlsettext with either of the flags and did u set the WinTitleMatchMode to 4 for advanced matching please give the whole code in autoit tags Regards Phoenix XL Edited May 31, 2012 by PhoenixXL My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. 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