GUIRegisterMsg($WM_COMMAND,"_TEST")
$i = 0
Func _TEST($hWnd, $Msg, $wParam, $lParam)
Local $nNotifyCode = BitShift($wParam, 16)
Local $nID = BitAnd($wParam, 0x0000FFFF)
Local $hCtrl = $lParam
Local $EN_CHANGE = 0x0300
If $nNotifyCode = $EN_CHANGE Then
Switch $nID
Case $mm
MMConvert()
Case $s
SConvert()
Case $m
MConvert()
Case $h
HConvert()
Case $d
DConvert()
Case $w
WConvert()
EndSwitch
EndIf
Return $GUI_RUNDEFMSG
EndFunc