Click on an image that pops up

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Tattered
Posts: 1
Joined: 04 Oct 2018, 16:49

Click on an image that pops up

04 Oct 2018, 16:57

I want to click on the image of a chest as it pops up on my screen, but this script isn't clicking, what am I missing?

Code: Select all

q::
  Loop
  {
    WinActivate, Google Chrome
    CoordMode Pixel
    CoordMode Mouse 
    ImageSearch, FoundX, FoundY, 0,0,3000,2000, C:\Users\Fires\Desktop\chest 3.JPG
    sleep, 100
    err := Errorlevel 
    If (err = 0)
    {
      ;Sleep, 500
      ;Click %FoundX%, %FoundY% 
      MouseMove, %fx%, %fy% 
      Sleep 500 
      click 
      sleep,500 
      break
    }
    Sleep, 500
  }
  return 

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: AlFlo and 218 guests