My Problem: check or un-check

Get help with using AutoHotkey and its commands and hotkeys
Posts: 1
Joined: 22 Sep 2018, 05:19

My Problem: check or un-check

Post by vascodaramin » 22 Sep 2018, 05:24

How to fix Problem below:
after a small AHK that TAB from control to another over a dialog of AutoCAD so when I reach a checkbox control I would like to know how can I check / uncheck the checkbox as desired.

Thanks you!!!
Posts: 372
Joined: 15 Aug 2014, 15:18

Re: My Problem: check or un-check

Post by rommmcek » 22 Sep 2018, 10:33

If you can identify the CheckBox control with WinSpy try:

Code: Select all

ControlGet, state, Checked,, ControlName, WinTitle
if !state
   ControlClick, ControlName, WinTitle
to get afterwards always checked state (delete [b]![/b] to get always unchecked state).
Post Reply

Return to “Ask For Help”