Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

imagesearch (brauche hilfe bitte)



  • Please log in to reply
1 reply to this topic
Servan
  • Members
  • 108 posts
  • Last active: Mar 20 2015 02:03 AM
  • Joined: 08 Dec 2013

hy

 

ich stehe auf dem schlauch -.-

imagesearch funktioniert einfach nicht und ich weiss nicht warum,... wenn ich auf F1 drücke dann kommt die meldung "Image not found." aber das bild sehe ich ja auf mein desktop, es findet einfach das bild nicht und ich weiss nicht warum -.-

 

mein code sieht so aus

F1::
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, hallo.PNG
If(ErrorLevel == 0){
Click, %foundX%, %foundY%
}else{
MsgBox, Image not found.
}
return


Servan
  • Members
  • 108 posts
  • Last active: Mar 20 2015 02:03 AM
  • Joined: 08 Dec 2013
✓  Best Answer

hab das problem gefunden lol ich brauch echt schlaf..... hier die lösung

F1::
ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\Users\Miran\Desktop\SkyAHK\hallo.PNG
If(ErrorLevel == 0){
Click, %foundX%, %foundY%
}else{
MsgBox, Image not found.
}
return