I have provided some code to toggle the checkbox in Notepad's Find dialog.
I have also provided two bits of script that you may be able to use, or adapt, to apply to your program. Note: I have used the 'path' shown in your screenshot.
Code: Select all
;Acc library (MSAA) and AccViewer download links - AutoHotkey Community
;https://autohotkey.com/boards/viewtopic.php?f=6&t=26201
q:: ;e.g. Notepad Find dialog toggle Match case checkbox
ControlGet, hCtl, Hwnd,, Button2, A
oAcc := Acc_Get("Object", "4", 0, "ahk_id " hCtl)
vAccName := oAcc.accName(0)
vAccValue := oAcc.accValue(0)
vAccAction := oAcc.accDefaultAction(0)
oRect := Acc_Location(oAcc)
vAccLocation := "x" oRect.x " y" oRect.y " w" oRect.w " h" oRect.h
oAcc.accDoDefaultAction(0)
MsgBox, % vAccName "`r`n" vAccValue "`r`n" vAccAction "`r`n" vAccLocation
oAcc := oRect := ""
return
e:: ;get GUI element relative to control
;note: replace ClassNN with appropriate ClassNN e.g. 'Button1'
ControlGet, hCtl, Hwnd,, ClassNN, A
oAcc := Acc_Get("Object", "10.2.7.3.5.1", 0, "ahk_id " hCtl)
oAcc.accDoDefaultAction(0)
oAcc := ""
return