Page 1 of 1

Build script using class controls?

Posted: Feb 6th, ’19, 16:10
by gsechler
Hello! I'm wondering if it's possible to build a script using the Class field from the Window Information as a reference point? The Window Information for the particular program I'm trying to build a shortcut for is below. After a specific shortcut key combination is pressed, I'd like the script to automatically select the WindowsForm10.EDIT.app.0.13965fa_r9_ad11 class control (a text box), paste what's on my clipboard, and then select another portion of the screen.

I've built a separate version of this script that simply uses mouse coordinates, however, the problem with this script is that it doesn't always work because sometimes I'm on my laptop and sometimes I'm on double monitors at work that vary depending on what desk I'm sitting at. Any help would be greatly appreciated!

Window
Title - Work Type
Class - ahk_class WindowsForms10.Window.8.app.0.13965fa_r9_ad1
Process - ahk_exe Mobile T&E.exe
Position (x, y) - 435, 175
Size (w, h) - 1050, 700

Control
Class - WindowsForms10.EDIT.app.0.13965fa_r9_ad11
Text - (blank)

Re: Build script using class controls?

Posted: Feb 8th, ’19, 14:50
by Marko
You may try ControlClick macro but I'm not sure this will work.