This probably has a simple solution, but I cannot figure it out. First here is the code:
#include
#include
#include
#include
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("", 234, 58, 192, 124)
$FIRST = GUICtrlCreateLabel("First", 8, 16, 23, 17)
$SECOND = GUICtrlCreateLabel("Second", 104, 15, 41, 17)
$1st=GUICtrlCreateInput("", 36, 12, 57, 21)
$2nd=GUICtrlCreateInput("", 150, 12, 57, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$FIRST1=GUICtrlRead($1st)
$SECOND2=GUICtrlRead($2nd)
if $FIRST1<>"" Then
$SECOND2=$FIRST1+$SECOND2
EndIf
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
What I want to do is, when I put a number in the First inputbox, the Second inputbox automatically adds it to its total.
Example:
First: I put in the number 6
Second: It already has the number 8 in it
I want the Second to automatically update to 14.
Any help is greatly appreciated.