Good day, after much time fiddling around with different "Control" functions, the best I could do in changing the selection of a dropdown checkbox of a different program; is to send a click to the control, set input focus on it and send keystrokes. The method is quite unreliable and the control has over 70 options, I was hoping to make a simple presets script that would avoid the pain of toggling multiple items on and off.
Code: Select all
ControlClick, WindowsForms10.COMBOBOX.app.0.378734a9, ahk_class WindowsForms10.Window.8.app.0.378734a, , LEFT, 1, D
ControlFocus, WindowsForms10.COMBOBOX.app.0.378734a9, ahk_class WindowsForms10.Window.8.app.0.378734a
Send, ^{home}{space 2}ss{Up}{Space}v{right}{space} ;just a sample
I was hoping there was a better and more reliable way of doing this.