Sign in to follow this  
Followers 0
IamTheKing

ImageSearch error

2 posts in this topic

#1 ·  Posted (edited)

Hello i have problem with imagesearch

#include <ImageSearch.au3>
 
checkForImage()
 
global $y = 0, $x = 0
 
Func checkForImage()
Local $search = _ImageSearch(@ScriptDir & "/img/mm2.png" , 0, $x, $y, 0)
If ($search = 1) Then
MouseMove($x, $y, 10)
Else
   MsgBox(4096, "a", "a")
EndIf
EndFunc
 
while 1
sleep(200)
WEnd

 

>"C:Program FilesAutoIt3SciTE..autoit3.exe" /ErrorStdOut "C:UsersxxxxxrDesktopDON_DESKTOPxxxxxxxxxxxxbot.au3"    
>Exit code: -1073741819    Time: 1.509
 
It doesn't moves the mouse it just terminates... I have the lastet version of imagesearch plugin and include...
Edited by IamTheKing

Share this post


Link to post
Share on other sites



IamTheKing, as you are referencing powerbot, perhaps you should become familiar with the forum rules (link is at the bottom right of every page) before continuing, especially the part that deals with game automation.


√-1 2^3 ∑ π, and it was delicious!

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