Jump to content

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

Autohotkey intelligentes Script erstellen (IF ELSE)


  • Please log in to reply
32 replies to this topic
Kamagashi
  • Members
  • 18 posts
  • Last active: Jul 10 2013 12:45 PM
  • Joined: 14 Jun 2013

ImageSearch, FoundX, FoundY, 800,800, 800, 800, C:\Dokumente und Einstellungen\oguz\Eigene Dateien\Eigene Bilder\Test.bmp

CoordMode Pixel ; Interprets the coordinates below as relative to the screen rather than the active window.
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, *Icon3 %A_ProgramFiles%\SomeApp\SomeApp.exe
if ErrorLevel = 2
MsgBox Could not conduct the search.
else if ErrorLevel = 1
MsgBox Icon could not be found on the screen.
else
MsgBox The icon was found at %FoundX%x%FoundY%.

 

 

 

Was muss ich jetzt ändern damit er wenn er das bild findet

bestimmte coordinaten anklickt?



nnnik
  • Members
  • 1625 posts
  • Last active: Jan 24 2019 02:19 PM
  • Joined: 28 Jul 2012

Du musst halt den letzten MsgBox Befehl mit dem Befehl zum Klicken auf eine Koordinate eretzen.


Visit the new forum ahkscript.org.

http://ahkscript.org


Kamagashi
  • Members
  • 18 posts
  • Last active: Jul 10 2013 12:45 PM
  • Joined: 14 Jun 2013

ImageSearch, FoundX, FoundY, 800,800, 800, 800, C:\Dokumente und Einstellungen\oguz\Eigene Dateien\Eigene Bilder\Test.bmp

CoordMode Pixel ; Interprets the coordinates below as relative to the screen rather than the active window.
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, *Icon3 %A_ProgramFiles%\SomeApp\SomeApp.exe
if ErrorLevel = 2
MsgBox Could not conduct the search.
else if ErrorLevel = 1
MsgBox Icon could not be found on the screen.
else
MsgBox The icon was found at %FoundX%x%FoundY%.

MouseClick, left,  766,  417
MouseClick, left,  766,  417
Sleep, 100

 

 

So?