Jump to content

Error


Archman
 Share

Recommended Posts

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\********\My Documents\auto IT\Mem-health.au3"

>Exit code: -1073741819 Time: 560.436

Everytime i run the script after about Time: 550 - 570 the Script closes and gives /ErrorStdOut and Exit code: -1073741819

What exactly does that mean?

Link to comment
Share on other sites

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\********\My Documents\auto IT\Mem-health.au3"

>Exit code: -1073741819 Time: 560.436

Everytime i run the script after about Time: 550 - 570 the Script closes and gives /ErrorStdOut and Exit code: -1073741819

What exactly does that mean?

Maybe this helps.

http://www.autoitscript.com/forum/index.php?showtopic=10639

http://www.autoitscript.com/forum/index.php?showtopic=31993

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

So could haveing about 10 functions that constantly jump at different points in each function to another and from there to another that then calls the first again cause this?

how can I tell, without knowing your script?

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

how can I tell, without knowing your script?

This is not the full script but it is the main part that has all the functions and calls to functions creating a never ending loop

Func go()
    ;Prepare
    $bufftime1 = GUICtrlRead($buff1cool)
    $bufftime2 = GUICtrlRead($buff2cool)
    $bufftime3 = GUICtrlRead($buff3cool)
    $bufftime4 = GUICtrlRead($buff4cool)
    $bufftime5 = GUICtrlRead($buff5cool)
    $bufftime6 = GUICtrlRead($buff6cool)

    ;=======================================================================================
    ;$pull = GUICtrlRead($input1) ; Number of mobs to pull b4 use skills
    $cycles = GUICtrlRead($input2) ; Counter to determine when to make a 180° Rotation.
    $count = 0
    ;=======================================================================================
    Send("+{TAB}")   ;Target Mob
    Sleep(500+Random(20,60))
    $remove = 500
    Call ("Buffminus")
    Call ("SelectMob")
    
EndFunc


Func SelectMob()
    $select = $select + 1
        If $count > $cycles Then
        MouseClick("middle")
        $count = 0  
        EndIf
    Send("+{TAB}")   ;Target Mob
    Call ("GetMobHealth")
        If $mob = 0 Then
        Sleep(400+Random(1,25))
        $remove = 400
        Call ("Buffminus")
                If $select > 30 then
                $select = 0
                MouseClick("middle")
                EndIf
        Call ("SelectMob")
    EndIf
    If $mob = " " Then
        Sleep(400+Random(1,25))
        $remove = 400
        Call ("Buffminus")
                If $select > 30 then
                $select = 0
                MouseClick("middle")
            EndIf
        Call ("SelectMob")
    EndIf
    Send("3")
        $remove = 1500
        Call ("Buffminus")
        Sleep(1500+Random(1,25))
    Call ("Attack")
EndFunc

Func Attack()
    $select = 0
    ; ATTACK 1
                If GUICtrlRead($checkboxattack1) = 1 And GUICtrlRead($checkboxattack1a) = 1 Then
                    Send("{SHIFTDOWN}")
                    Send(GUICtrlRead($input9))
                    Send("{SHIFTUP}")
                    Sleep(2200+Random(1,25))
                    Call ("Attackcheck")
                    ElseIf GUICtrlRead($checkboxattack1) = 1 Then
                    Send(GUICtrlRead($input9))
                    Sleep(2200+Random(1,25))
                    Call ("Attackcheck")
                EndIf
                ; ATTACK 2
                If GUICtrlRead($checkboxattack2) = 1 And GUICtrlRead($checkboxattack2a) = 1 Then
                    Send("{SHIFTDOWN}")
                    Send(GUICtrlRead($input10))
                    Send("{SHIFTUP}")
                    Sleep(2100+Random(1,25))
                    Call ("Attackcheck")
                    ElseIf GUICtrlRead($checkboxattack2) = 1 Then
                    Send(GUICtrlRead($input10))
                    Sleep(2500+Random(1,25))
                    Call ("Attackcheck")
                EndIf
                ; ATTACK 3
                If GUICtrlRead($checkboxattack3) = 1 And GUICtrlRead($checkboxattack3a) = 1 Then
                    Send("{SHIFTDOWN}")
                    Send(GUICtrlRead($input11))
                    Send("{SHIFTUP}")
                    Sleep(2100+Random(1,25))
                    Call ("Attackcheck")
                    ElseIf GUICtrlRead($checkboxattack3) = 1 Then
                    Send(GUICtrlRead($input11))
                    Sleep(2100+Random(1,25))
                    Call ("Attackcheck")
                EndIf
                ; ATTACK 4
                If GUICtrlRead($checkboxattack4) = 1 And GUICtrlRead($checkboxattack4a) = 1 Then
                    Send("{SHIFTDOWN}")
                    Send(GUICtrlRead($input12))
                    Send("{SHIFTUP}")
                    Sleep(1000+Random(1,25))
                    Call ("Attackcheck")
                    ElseIf GUICtrlRead($checkboxattack4) = 1 Then
                    Send(GUICtrlRead($input12))
                    Sleep(2500+Random(1,25))
                    Call ("Attackcheck")
                EndIf
                ; ATTACK 5
                If GUICtrlRead($checkboxattack5) = 1 And GUICtrlRead($checkboxattack5a) = 1 Then
                    Send("{SHIFTDOWN}")
                    Send(GUICtrlRead($input13))
                    Send("{SHIFTUP}")
                    Sleep(1000+Random(1,25))
                    Call ("Attackcheck")
                    ElseIf GUICtrlRead($checkboxattack5) = 1 Then
                    Send(GUICtrlRead($input13))
                    Sleep(1000+Random(1,25))
                    Call ("Attackcheck")
                EndIf
                ; ATTACK 6
                If GUICtrlRead($checkboxattack6) = 1 And GUICtrlRead($checkboxattack6a) = 1 Then
                    Send("{SHIFTDOWN}")
                    Send(GUICtrlRead($input14))
                    Send("{SHIFTUP}")
                    Sleep(1000+Random(1,25))
                    Call ("Attackcheck")
                    ElseIf GUICtrlRead($checkboxattack6) = 1 Then
                    Send(GUICtrlRead($input14))
                    Sleep(1000+Random(1,25))
                    Call ("Attackcheck")
                EndIf
                Call ("Attack") 
            EndFunc
            
            
Func GetMobHealth()
        $OpenProcess = _MemOpen(0x38, False, $PID) ;-> Enable reading/writing to the process and get the handle
        Sleep(100+Random(1,25))
        $mob = _MemRead($OpenProcess, $Address, 4) ;-> Doesnt return Mobs tru health but if dead = 0 if not <>0
        Sleep(100+Random(1,25))
        _MemClose($OpenProcess) ;-> Disable reading/writing to the process 
    EndFunc
    
Func Attackcheck()
    $remove = 2200
    ;Call ("Buffminus")
    Call ("GetMobHealth")
        If $mob = 0 Then
            $count = $count+1
            Call ("loot")
            EndIf
EndFunc 
    
Func Buffminus()
    ;BUFF 1
        If GUICtrlRead($checkboxbuff1) = 1 Then
        $bufftime1 = $bufftime1 - $remove 
        EndIF
        If GUICtrlRead($checkboxbuff1) = 1 And $bufftime1 < 0 Then
                Send(GUICtrlRead($input3))
                Sleep(2200+Random(1,25))
                $bufftime1 = GUICtrlRead($buff1cool)
        EndIf
        ;BUFF 2
        If GUICtrlRead($checkboxbuff2) = 1 Then
        $bufftime2 = $bufftime2 - $remove
    EndIf
    If GUICtrlRead($checkboxbuff2) = 1 And  $bufftime2 < 0 Then
                Send(GUICtrlRead($input4))
                Sleep(2200+Random(1,25))
                $bufftime2 = GUICtrlRead($buff2cool)
        EndIf
        ;BUFF 3
        If GUICtrlRead($checkboxbuff3) = 1 Then
        $bufftime3 = $bufftime3 - $remove
        EndIf
        If GUICtrlRead($checkboxbuff3) = 1 And $bufftime3 < 0 Then
                Send(GUICtrlRead($input5))
                Sleep(2200+Random(1,25))
        EndIf
        ;BUFF 4
        If GUICtrlRead($checkboxbuff4) = 1 Then
        $bufftime4 = $bufftime4 - $remove
    EndIf
    If GUICtrlRead($checkboxbuff4) = 1 And $bufftime4 < 0 Then
                Send(GUICtrlRead($input6))
                Sleep(2200+Random(1,25))
                $bufftime4 = GUICtrlRead($buff4cool)
        EndIf
        ;BUFF 5
        If GUICtrlRead($checkboxbuff5) = 1 Then
        $bufftime5 = $bufftime5 - $remove
    EndIf
    If GUICtrlRead($checkboxbuff5) = 1 And $bufftime5 < 0 Then
                Send(GUICtrlRead($input7))
                Sleep(2200+Random(1,25))
                $bufftime5 = GUICtrlRead($buff5cool)
        EndIf
        ;BUFF 6
        If GUICtrlRead($checkboxbuff6) = 1 Then
        $bufftime6 = $bufftime2 - $remove
    EndIf
    If GUICtrlRead($checkboxbuff6) = 1 And $bufftime6 < 0 Then
                Send(GUICtrlRead($input8))
                Sleep(2200+Random(1,25))
                $bufftime6 = GUICtrlRead($buff6cool)
        EndIf
    EndFunc 

Func loot()     
        If GUICtrlRead($checkboxloot) = 1 Then
                Send("{SPACE}")
                Sleep(500+Random(20,60))
                Send("{SPACE}")
                Sleep(500+Random(20,60))
                Send("{SPACE}")
                Sleep(500+Random(20,60))
                Send("{SPACE}")
                Sleep(500+Random(20,60))
                Send("{SPACE}")
                Sleep(500+Random(20,60))
                Send("{SPACE}")
                $remove = 2500
                Call ("Buffminus")
            EndIf
            
            ; RANSACK THE LIVING SHIT OUT OF IT
            If GUICtrlRead($checkboxcraft) = 1 Then
                    Send(GUICtrlRead($input15))
                    Sleep(7000+Random(1,25))
                    $remove = 7000
                    Call ("Buffminus")
                EndIf
        Call ("SelectMob")
EndFunc
Edited by Archman
Link to comment
Share on other sites

This is not the full script but it is the main part that has all the functions and calls to functions creating a never ending loop

well, you say it yourself, a never ending loop. That can cause your error, and is most probably the reason! Restructure your code.

BTW: Why do you call your functions with Call(). That's not necessary. Just call it by their name! If you do so, you will most probably get another error. Something about exceeding the maximum recursion level. That's due to your never ending loop of function calls.

Edited by /dev/null

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Thank you :whistle:

I am still very new to AutoIt and Scripting, in fact i have never scripted anything prior to this or tried memory reading ect.

So i was unsure if the way the script ran was causing the error. And alltho i was suspicious that was the problem it is reasuring to have somebody that knows for sure confirm it for you.

Once Again Thanks /dev/null

Link to comment
Share on other sites

Thank you :whistle:

I am still very new to AutoIt and Scripting, in fact i have never scripted anything prior to this or tried memory reading ect.

So i was unsure if the way the script ran was causing the error. And alltho i was suspicious that was the problem it is reasuring to have somebody that knows for sure confirm it for you.

Once Again Thanks /dev/null

see also here: http://www.autoitscript.com/forum/index.ph...c=40870&hl=

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...