Can I please have someone help me understand why I cant select an edit control, then select another using ACC.
Code: Select all
WinGet,hWnd,id, Accounts Receivable (Production)
oAcc := Acc_Get("Object", "4.4.4.1.4.6.4.6.4.1.4.6.4", 0, "ahk_id " hWnd) ; selects Amount Control in AR
oAcc.accSelect(0x1,0)
SendInput, $1007
;oAcc.accSelect(0x1,3) ; Trying to deselect it first, no luck
;oAcc.accSelect(3) ; Trying to deselect it first, no luck
;oAcc.accSelect(3,0) ; Trying to deselect it first, no luck
;oAcc := ; Trying to reset it, no luck
sleep 500
oAcc := Acc_Get("Object", "4.4.4.1.4.6.4.6.4.1.4.16.4", 0, "ahk_id " hWnd) ; selects Description Control in AR
oAcc.accSelect(0x1,0)
SendInput, SALARY OVERPAYMENT