Sign in to follow this  
Followers 0
jakub

error while script is running

2 posts in this topic

>"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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0