Dropdown Checkbox in WPF/WindowsForms

Get help with using AutoHotkey and its commands and hotkeys
Posts: 15
Joined: 04 Oct 2015, 10:48

Dropdown Checkbox in WPF/WindowsForms

06 Nov 2016, 08:03

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.

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, Bing [Bot], songdg, vanil, yagami19821223, zvit and 43 guests