I think burrup came up with this script that does what you want to do.
#include <GUIConstants.au3>
GUICreate("Test")
$test1 = GUICtrlCreateInput ( "0000", 2, 2,40,-1,$ES_NUMBER)
$test2 = GUICtrlCreateInput ( "This is a test", 2, 30,70,-1)
$test3 = GUICtrlCreateLabel ( "text", 100, 2, 100, -1)
GUISetState()
$changed = GUICtrlRead ($test3)
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
If GUICtrlRead ($test1) > 9999 Then
GUICtrlSetData ($test1, "9999")
EndIf
If $changed <> GUICtrlRead ($test1) & " - " & GUICtrlRead ($test2) Then
GUICtrlSetData ($test3, GUICtrlRead ($test1) & " - " & GUICtrlRead ($test2))
EndIf
$changed = GUICtrlRead ($test3)
Wend
I can't remember the thread/link to the original post.
Burrup... this is correct no? Your code?
RocTx