Sign in to follow this  
Followers 0
stealthingyew

imagesearch and windows10

4 posts in this topic

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

Share this post


Link to post
Share on other sites



kindly show your code...

 


ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Share this post


Link to post
Share on other sites

Maybe the resolution of the browser has changed!

And as you seen meanwhile ImageSearch, PixelSearch and mouseclicks aren't the best way to automate a programm, name the programm and we will try to find a better way.

 

Share this post


Link to post
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

 

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