Jump to content

Windows 11 ImageSearch Problems?


Go to solution Solved by Danp2,

Recommended Posts

Posted

Hello guys,

I'm trying to find a mark on screen with ImageSearch library. But some times it's give wrong coord's and sometimes its cant find why?

 

My Code:
 

Do
        $arama = _ImageSearch("tamam.jpg",0,0,0,40)
        Sleep(3000)
    Until $arama = 1

My Screen:

image.thumb.png.bd964ed7d4a3d7f1fd43346ecb4be338.png

And tamam.jpg here:tamam.jpg.04c82cc87f59f9c7f0d2f1e564e22c44.jpg its pretty easly but its not work.

Posted (edited)

And if I search adobe acrobat icon on my desktop
Look where is my mouse going?

Black corner is where autoit find acrobat icon :(

founded.png.b7121442ff8fcd040c883dffe1ca62d7.png

 

Code here:

#include <ImageSearch.au3>
HotKeySet("{F1}","ara")


Func ara()
    Local $x,$y
    If _ImageSearch("acrobat.png",0,$x,$y,25) = 1 Then
        MouseMove($x,$y)
    EndIf
EndFunc

While 1
    Sleep(250)
WEnd

 

Edited by lenclstr746
Posted
12 hours ago, Danp2 said:

Pencere Ayarlarında (Sistem > Ekran altında) Ölçek ayarınızı kontrol edin . % 100'ün dışında bir şeye ayarlanmış olması muhtemeldir .

Yes its %125 but why its bullshit i think

Posted
12 hours ago, Danp2 said:

Check your Scale setting in Window Settings (under System > Display). It's likely that it is set to something besides 100%.

Can we fix this? I'm using 17 inch laptop %100 its too small for me

  • 3 weeks later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...