sorry i found even more errors but now its fixed so here is finished code
#include <GUIConstants.au3>
Opt("GUIOnEventMode", 1); Change to OnEvent mode
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 293, 117, 301, 284)
$Input1 = GUICtrlCreateInput("", 67, 24, 150, 21)
$Button1 = GUICtrlCreateButton("OK", 104, 72, 81, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
GUISetState()
While 1
$nMsg = GUIGetMsg()
Select
Case $nMsg = $GUI_EVENT_CLOSE
ExitLoop
GUIDelete()
Run ("C:\Program Files\Mozilla Firefox\firefox.exe")
Sleep (5000)
Send ("{TAB 2}")
Case $nMsg = $button1
$ReadInput1 = GUICtrlRead($Input1)
Send($ReadInput1);Its not working. Sending only the number "0".
EndSelect
WEnd
P.S add an exit functions its real annoying not being able to exit your script!!!