Testing for ImageSearch Problems menu

User Tag List

Results 1 to 6 of 6
  1. #1
    cowxfarm's Avatar Member
    Reputation
    3
    Join Date
    Jun 2012
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Testing for ImageSearch Problems

    When I ran a script to test for ImageSearch's I get an error and am stuck here.
    Testing for ImageSearch Problems-autoiterror-jpg

    This is the code for the test I been using.
    #include <ImageSearch.au3>
    HotKeySet("{PAUSE}", "Terminate")
    HotKeySet("n", "checkPic")

    While 1
    WEnd

    Func checkPic()
    $x=0
    $y=0
    $res= _ImageSearch("D3AHImages\AllRes.jpg",0,$x,$y,10)
    If $res = 1 Then
    MouseMove($x+10,$y,0)
    EndIf
    EndFunc

    Func Terminate()
    Exit 0
    EndFunc ;==>Terminate

    Testing for ImageSearch Problems
  2. #2
    Ludowitsch's Avatar Member
    Reputation
    2
    Join Date
    Jan 2012
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The message says the error occurred in the ImageSearch.au3 include. That's where you should start looking.

  3. #3
    cowxfarm's Avatar Member
    Reputation
    3
    Join Date
    Jun 2012
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Ludowitsch View Post
    The message says the error occurred in the ImageSearch.au3 include. That's where you should start looking.
    Fixed the problem, I had to run script(x86) instead of (x64)

    Now i get something in the script that says
    $Paused = NOT $Paused
    $Paused = NOT ^ ERROR

  4. #4
    SpamBearz's Avatar Banned
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make sure that somewhere in your script you define the variable Paused. Just paste the below into the top of the code.

    Code:
    Global $Paused

  5. #5
    cowxfarm's Avatar Member
    Reputation
    3
    Join Date
    Jun 2012
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by SpamBearz View Post
    Make sure that somewhere in your script you define the variable Paused. Just paste the below into the top of the code.

    Code:
    Global $Paused
    When I did that the script was not able to run.

    Is there an example of showing how to define the variable paused?
    Would it be
    $Paused = $Paused? or code?

  6. #6
    SpamBearz's Avatar Banned
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Dim $paused																				; Bool variable for pausing the bot
    
    ; Pauses the bot upon use of Hotkey {INSERT}
    Func Pause()
       
       $paused = NOT $paused
       if $paused Then
    	  FileWrite($file, "[" & @Hour & ":" & @Min & ":" & @Sec & "] BastBot paused." & @CRLF)																; Log Message
       Else
    	  FileWrite($file, "[" & @Hour & ":" & @Min & ":" & @Sec & "] BastBot unpaused." & @CRLF)																; Log Message
       EndIf
       While $paused
            sleep(100)
       WEnd
       
    EndFunc
    That's the exact pause function and variable definition I use in all of my bots. You can remove the log messages, but other than that, that code works.

Similar Threads

  1. Autoit Imagesearch Problem - Searching unid items in Inventory
    By hesi in forum Diablo 3 Memory Editing
    Replies: 1
    Last Post: 12-30-2012, 02:25 PM
  2. [SGather] Solution for some problems
    By ahf620 in forum WoW Bots Questions & Requests
    Replies: 172
    Last Post: 07-13-2012, 10:27 AM
  3. a Trick in argent tournament fighting - (only tested for dk).
    By UnknownHero in forum World of Warcraft Guides
    Replies: 8
    Last Post: 07-12-2009, 11:01 PM
  4. Replies: 1
    Last Post: 09-29-2008, 04:36 PM
  5. Night Elf -> Blood Elf Successful except for one problem...
    By grampa5000 in forum World of Warcraft Model Editing
    Replies: 6
    Last Post: 09-06-2006, 01:32 PM
All times are GMT -5. The time now is 03:14 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search