When I populate value via AHK and manually click in the the input box the submit button works.
I tried setting focus on the input box after setting its value and I tried doing DoDefaultAction, does not seem to work.
Any suggestions how I can make the window see the newly populated value when pressing submit button?
Code: Select all
;populate quantity box with value
oAcc := Acc_Get("Object", "4.1.11.8.10.1", 0, "ahk_id " hWnd)
oAcc.accValue(0) := 99 ;visually value gets populated in the input box and everything seems ok
;click submit button with the newly populated value
gAcc := Acc_Get("Object", "4.1.11.11", 0, "ahk_id " hWnd)
gAcc.accDoDefaultAction(0) ;submit button gets clicked but the value of 99 is not getting fed in the submit