Build script using class controls?

Discussion, questions and support.
Post Reply
gsechler
Posts: 6
Joined: Dec 7th, ’18, 19:38

Post by gsechler » Feb 6th, ’19, 16:10

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)
User avatar
Marko
Posts: 1719
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Feb 8th, ’19, 14:50

You may try ControlClick macro but I'm not sure this will work.
Post Reply