Jump to content
Sign in to follow this  

Can't get text into control

Recommended Posts


I have a control with two text boxes for password entry/confirmation. The control has the same name and instance number for both boxes, and I can't figure out which command to use to get it to work. I've attached a PNG of the control.

I have tried ControlSend and ControlSetText, for example:

;ControlSetText ("Mobility Warehouse Installation Wizard", "Create a Mobility warehouse password", "[CLASS:#32770; INSTANCE:4]", "password")

I have a feeling I'm missing something simple, but I've just started using AutoIt so that wouldn't be much of a surprise ;)

The Window Info Summary:

>>>> Window <<<<

Title: Mobility Warehouse Installation Wizard

Class: #32770

Position: 99, 45

Size: 531, 431

Style: 0x94C80AC4

ExStyle: 0x00010101

Handle: 0x0024045E

>>>> Control <<<<

Class: #32770

Instance: 4

ClassnameNN: #327704


Advanced (Class): [CLASS:#32770; INSTANCE:4]



Position: 0, 0

Size: 522, 359

ControlClick Coords: 250, 253

Style: 0x50000444

ExStyle: 0x00010000

Handle: 0x001504D2

>>>> Mouse <<<<

Position: 352, 320


Share this post

Link to post
Share on other sites

I have found ControlSetText works best. I would try it with the second parameter being blank:

ControlSetText ("Mobility Warehouse Installation Wizard", "", "[CLASS:#32770; INSTANCE:4]", "password")

Sorry, I couldn't find the software, so I couldn't do any testing.

RAID Calculator | Software Installer

The truth has been suppressed since the dawn of time.

Share this post

Link to post
Share on other sites

Yeah, you have to register as a potential customer to download it, and I didn't want to ask anyone to jump through that hoop.

This didn't work for me, unfortunately - neither did running it with the text in the second parameter. But thanks for the idea!

Share this post

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
Sign in to follow this