This might be a little confusing, but here are a few alternate ways to try...you need to comment/uncomment lines to test different ways...
Code:
;//Ctrl:="Edit49"
;//Ctrl:="Edit3"
;//SleepTime = 200
;//Gui, -Caption
Gui, Margin, 6, 6
Gui, Add, Edit, w119 vEdit1 gEditChanged, 0
Gui, Add, Edit, w119 vEdit2 gEditChanged, 0
Gui, Add, Edit, w119 vEdit3 gEditChanged, 0
Gui, Show
return
F9::Add1(Ctrl)
EditChanged:
iec++
GuiControlGet, value, , %A_GuiControl%
Tooltip, %iec%: EditChanged(%value%), 0, 157, 4
return
Add1(p_ctrl="") {
Global
ControlGetFocus, ctrlfocus, a
if (p_ctrl="") {
p_ctrl:=ctrlfocus
}
Tooltip, %A_ThisFunc%: start, 0, 119, 2
;//ControlGetText, OutputVar[, Control , WinTitle, WinText, ExcludeTitle, ExcludeText]
;//ControlGetText , ValueEdit , %p_ctrl%, - + ÷ x
ControlGetText , ValueEdit , %p_ctrl%, a
NewValueEdit:=ValueEdit+1
if (NewValueEdit="") {
NewValueEdit:=0
}
Tooltip, %A_ThisFunc%: %p_ctrl%(%ValueEdit%) -> (%NewValueEdit%), 0, 138, 3
;// Works for AutoHotkey Gui...
;// Set New Value: ControlSetText...
;//ControlSetText, %p_ctrl%, %NewValueEdit%, a
;// Clear control: ControlSetText...
;//ControlSetText, %p_ctrl%, , a
;// Clear control: Send Keys: ControlSend...
;//ControlSend[, Control, Keys, WinTitle, WinText, ExcludeTitle, ExcludeText]
ControlSend, %p_ctrl%, {Home}+{End}, a
;// Clear control: Send Keys: Send...
;//ControlFocus, %p_ctrl%, a
;//Send, {Home}+{End}
;//ControlFocus, %ctrlfocus%, a
;// Set New Value: Control, EditPaste...
;//Control, Cmd[, Value, Control, WinTitle, WinText, ExcludeTitle, ExcludeText]
Control , EditPaste, %NewValueEdit%, %p_ctrl%, a
Tooltip, %A_ThisFunc%: end, 0, 119, 2
return
}
...I cannot test with that program, but they all work on an AutoHotkey GUI...plz tell me if they work in that program...