Reputation: 560
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 I literally couldn't find any references of "wxWindowNR" anywhere on the web. I'll attach a photo of the control.
If you don't know what wxWindowNR is either (I expect you might not since I have not seen it anywhere else on the web), what's the best way to automate clicking and typing in the box? I thought ControlClick would do it...
Upvotes: 0
Views: 1959
Reputation: 1707
"Tab-cycle" (for example, send("{Tab 5}")
) through all your controls until you get there in your GUI and then use a simple send()
.
Upvotes: 1