Jump to content

Script closes down with no errors


Go to solution Solved by Melba23,

Recommended Posts

Hello guys.

Im trying a new function that i never tryit before... i made it work but suddently after 5-10min it closes down with no errors..
ive been looking for somekinda error reporting.. but cant seem to figure it out.. 


And now im here..
It seems a little slow is there a way i can speed things up the faster it react on the pixels the better??

It may be a little messy... this is only my 4. script..
I appreciate all the help i can get :)




Here's the script..


 

Have a good day  :)

Global $Paused
HotKeySet("=","Leave")  ;script can START by pressing =
HotKeySet("-", "Pause") ;script can be Pause by pressing -
HotKeySet("<", "Stop") ;script can be Stopped by pressing x



$go = True
$Run = False
$RunMade = 0
$Forcerun = 0


#include <Misc.au3>

$dll = DllOpen("user32.dll")

While $go
      if($Run) Then
    Sleep (20)
    Force()
    If _IsPressed("10", $dll) Then
      
      $ForceRun = 1
      sleep(20)
      
       $Pixel1 = PixelSearch( 1276,885,1345,961,0x351A35,80) ;MANA
      If Not @error Then
         sleep(20)
          $Pixel1 = PixelSearch( 766,35,972,77,0x7b140E,10) ;MONSTER RØDT LIV
      If Not @error Then
    send ("{2 down}")   
    Sleep (350)
    send ("{2 up}")
    Endif
    Endif
     Endif
     EndIf
     WEnd

Func Force()
   If $ForceRun = 1 Then
   If _IsPressed("01", $dll) Then
   If _IsPressed("10", $dll) = false Then
      send("w")
       $ForceRun = 0
      EndIf
   EndIf
EndIf
 Endfunc


Func Pause()
   $Run = False
EndFunc

Func Stop()
DllClose($dll)   ;to allow the script to stop
    Exit
EndFunc 
 
Func Leave()
    $Run = True
 EndFunc



 
Link to comment
Share on other sites

  • Developers

Removed the double posted thread and like to point you to our forum rules.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

First of all.. i did not double post? not on purpose though...

second.. i have to follow/read the rules? i did just read them and where do it say i cant post my script? where do i break the rules?
sorry sir.. im guilty in trying to learn autoit :P

i guess you know what topic im talking about.. i wont link it since i guess u would get anoyed and say i dont follow rules again :P


well


Have a good day sir...

Edited by Kondicykel
Link to comment
Share on other sites

  • Moderators

Kondicykel,

 

i did not double post? not on purpose though

You did double post - I can see the deleted one. But this happens from time to time by accident and we do not get too excited by it. I think I hold the record when the forum was misbehaving a few years ago when I managed to post the same thing 5 times. ;)

 

i did just read them and where do it say i cant post my script? where do i break the rules?

But looking at your script, I see "MANA & MONSTER RØDT LIV" - to me, and I assume Jos, that says "GAMEBOT" in big bright letters! And if you read the rules to which you were linked you will see that game threads are prohibited. Hence your thread was locked. :naughty:

All clear now? :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

 

You did double post - I can see the deleted one. But this happens from time to time by accident and we do not get too excited by it. I think I hold the record when the forum was misbehaving a few years ago when I managed to post the same thing 5 times.

That is odd.. cuzz i didnt delete any post.. :)

 

 

But looking at your script, I see "MANA & MONSTER RØDT LIV" - to me, and I assume Jos, that says "GAMEBOT" in big bright letters! And if you read the rules to which you were linked you will see that game threads are prohibited. Hence your thread was locked

Yeah well i copied alot of it from 2 other scripts... and modified it .. thats why u see its in danish and english and its totaly messed up :P

But i can see it from your point of view

This is not ment to be a gamebot. but a learning experience..

Since u cant help me i will go somehere else..

Thx for your patience :)

Link to comment
Share on other sites

  • Moderators
  • Solution

Kondicykel,

 

i didnt delete any post

No, we did it for you. :)

 

This is not ment to be a gamebot. but a learning experience

Fine, but learn in another way that by botting games. :naughty:

 

Since u cant help me i will go somehere else

No need - just stick to the rules and you will get a lot of help here. ;)

I have now unlocked the thread for a while just in case you want to reply again - saves me having to merge each time. :D

M23

Edit: Relocked.

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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