Jump to content
Sign in to follow this  
Roflcopter234

ImageSearch not working - (Moved)

Recommended Posts

#include <ImageSearch2015.au3>
#AutoIt3Wrapper_UseX64=y

HotKeySet("s", "start")
HotKeySet("e", "stop")


While 1
    Sleep(100)
WEnd

func stop()
    Exit
EndFunc

Func start()
    Global $x, $y
    Do
        $iResult = _ImageSearch("C:\Users\luca_\Desktop\hc\Unbenannt.PNG", 1, $x, $y, 0)
        If $iResult <> 1 Then Sleep(1000)
    Until $iResult = 1
    If $iResult Then
                MouseMove($x,$y,10)
                Exit
            EndIf
EndFunc

 

I just wrote this code for trying out ImageSearch, but it doesnt find the picture (The picture is just the Spotify logo in my task bar). I already tried other pictures but always the same. The program doesnt find anything. I know it is searching because "+>@OSArch=X64    @AutoItX64=1    therefore using x64 ImageSearch DLL" gets written on the console every second. Can anybody help me?

Share this post


Link to post
Share on other sites

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team


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.
  :)

Share this post


Link to post
Share on other sites

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...