; Press Esc to terminate script, Pause/Break to "pause"
#Include<IE.au3>
Global $Paused
HotKeySet("{`}", "Terminate")
$sUserName = InputBox("", "Please enter your username: ") ;Get data from the input
Terminate($sUserName) ;use it later to change the name
Func Terminate($uname)
$oIE = _IECreate ("website")
$oForm = _IEFormGetObjByName ($oIE, "MAIN")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "SITE")
$oQuery2 = _IEFormElementGetObjByName ($oForm, "LOGON_ID")
$sin="1001"
$uname ;This has been set before the function was called and will remain the same as the value that was input for the duration of the script
_IEFormElementSetValue ($oQuery1,$sin)
_IEFormElementSetValue ($oQuery2,$uname)
$oButton=_IEGetObjById($oIE,"ENTER")
_IEAction ($oButton, "click")
_IELoadWait($oIE,0)
EndFunc ;==>Terminate