Jump to content

Automate typing text into a control of CLASS:wxWindowNR. Help!


Recommended Posts

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!

post-73040-0-13653700-1338393011_thumb.p

Link to comment
Share on other sites

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 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...