jakub Posted November 2, 2007 Posted November 2, 2007 >"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\abc\Pulpit\b-bot\b-bot.au3" >Exit code: -1073741819 Time: 86.312 while script is running an error stop it every time after few minutes - when i press enter (not everytime) Func inputbox2($title,$label,$parent) GUISetState(@SW_DISABLE,$parent) $GUIInput=GUICreate ($title,300,100,-1,-1,-1,-1,$parent) $Input=GUICtrlCreateInput("",20,40,260,20) $OK=GUICtrlCreateButton("ok",250,70,30,20,$BS_DEFPUSHBUTTON) $COPY=GUICtrlCreateButton("Copy",200,70,50,20) $GUIInputLabel=GUICtrlCreateLabel($label,20,10) GUISetState(@SW_SHOW,$GUIInput) While 1 $msg=GUIGetMsg() Select Case $msg=$GUI_EVENT_CLOSE ExitLoop Case $msg=$OK Return GUICtrlRead($input) ExitLoop Case $msg=$COPY Return $title ExitLoop EndSelect WEnd GUIDelete($GUIInput) GUISetState(@SW_ENABLE, $parent) EndFunc
Blue_Drache Posted November 2, 2007 Posted November 2, 2007 (edited) Your code is meaningless and appears to be correctly written. Func inputbox2($title, $label, $parent) GUISetState(@SW_DISABLE, $parent) $GUIInput = GUICreate($title, 300, 100, -1, -1, -1, -1, $parent) $Input = GUICtrlCreateInput("", 20, 40, 260, 20) $OK = GUICtrlCreateButton("ok", 250, 70, 30, 20, $BS_DEFPUSHBUTTON) $COPY = GUICtrlCreateButton("Copy", 200, 70, 50, 20) $GUIInputLabel = GUICtrlCreateLabel($label, 20, 10) GUISetState(@SW_SHOW, $GUIInput) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $OK Return GUICtrlRead($Input) ExitLoop Case $msg = $COPY Return $title ExitLoop EndSelect WEnd GUIDelete($GUIInput) GUISetState(@SW_ENABLE, $parent) EndFunc ;==>inputbox2 Edited November 2, 2007 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now