Activate/Select ACC input field object

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
flipachoo
Posts: 1
Joined: 08 Feb 2023, 15:49

Activate/Select ACC input field object

Post by flipachoo » 08 Feb 2023, 16:02

I have an issue where after updating value of the text box in the java based floating window that value is not being recognized by the submit button. Its almost as the newly populated value never triggers an update, and submit proceeds with the old value.

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 

User avatar
lmstearn
Posts: 694
Joined: 11 Aug 2016, 02:32
Contact:

Re: Activate/Select ACC input field object

Post by lmstearn » 08 Feb 2023, 22:52

Hi @flipachoo, and welcome AHK. :)
Does rommmcek's version make any difference?
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH

Post Reply

Return to “Ask for Help (v1)”