Jump to content

imagesearch and windows10


Recommended Posts

does anyone else have a problem with this?
 It works fine on windows 7 but on my windows10 laptop I cannot get the imagesearcharea to work it runs but never returns anything.

I can post my exact scripts that is calling imagesearcharea if necessary but seems to be a windows10 only issue.

I attached imagesearch.au3 and the imagesearchdll I use.

 

 

 

 

ImageSearch.au3

ImageSearchDLL64.dll

Link to comment
Share on other sites

$delete, $topx,$topy,$bottomx,$bottomy are all taken from a config.ini file

as I said no problems running on a windows 7 machine but on a windows 10 machine(both 64 bit) it never finds the image or any image for that matter. It doesn't error out and the correct key is read from file and that the key is in fact being pushed.

Func Deleteme()

    $vkdeleteme = StringRight(Hex(_GUICtrlHKI_GetHotKey($deleteme)), 4)
    MsgBox($MB_SYSTEMMODAL, "Delete", $vkdeleteme) ;double check correct hex key code
    ToolTip("checking for item to delete!", 0, 0)
    $UnPaused = Not $UnPaused
    While $UnPaused
        Do
            sleep (100)


        Until _IsPressed($vkdeleteme, $hDLL)
        MsgBox($MB_SYSTEMMODAL, "Activated", "Searching program to delete") ;checking if key is detected being pushed
        Do
            Sleep(200)
            Local $search1 = _ImageSearchArea('Images\delete.png', 1, $topx, $topy, $bottomx, $bottomy, $x, $y, 40)
            If $search1 = 1 Then
                MsgBox($MB_SYSTEMMODAL, "Delete", "found program to delete") ;just to check incase soundplay isnt working
                SoundPlay("Sound\delete.wav")
                Sleep(100)
            EndIf
        Until $search1 = 1
    WEnd
EndFunc   ;==>end

 

Link to comment
Share on other sites

  • 1 month later...

Hi AutoBert, I've found several different downloads.  but none of them work on my computer.  Seems maybe it has to be customized for every new operating system?  After trying for several hours... i broke out the paper and marker and just made flashcards instead of using tech.  :sweating:

 

Would like to figure it out, I'm just way too tired.  

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