I am using AHK to navigate through an electronic patient file (EPF) as an MD.
I want the cursor to focus to a certain textbox in the EPF using a hotkey function.
For instance I want the cursor to move to the "Conclusion" textbox.
When I use the WindowSpy, it tells me that this textbox is "ThunderRT6TextBox117" as ClassNN and in Text it tells me that it is "Conclusion"
Then if I use
Code: Select all
ControlFocus,Conclusion,A
Code: Select all
ControlFocus,ThunderRT6TextBox117,A
Unfortunately, on another moment, this same textbox may be "ThunderRT6TextBox74" as ClassNN, even though it's completely the same textbox on screen.
Does anyone have a suggestion why this control does not respond to the text and some controls do? And is there a better way to reach such controls?
Imagesearch will probably work, but will have the disadvantage of worse performance.
Thanks in advance!
Best, Justin