How to double-click with FindClick? Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Posts: 196
Joined: 20 Jun 2014, 16:48

How to double-click with FindClick?

30 Jul 2018, 04:57

I am using FindClick in the code below to double click on an Image. Is there a better option to put this in one line? I tried FindClick(Image, "2 e") and FindClick(Image, 2,"e"), etc., but none worked!

Code: Select all

Image := "C:\Documents and Settings\User\My Documents\Someimage.png"
FindClick(Image, "e")
Sleep, 100
FindClick(Image, "e")
User avatar
Posts: 1069
Joined: 06 Aug 2017, 08:21
Location: Germany

Re: How to double-click with FindClick?

30 Jul 2018, 05:40

Findclick? Never heard of that function (and couldn't find it on the docs either).

Try it with ImageSearch.

Code: Select all

ImageSearch, x, y, 0, 0, 1920, 1080, *100 C:\Documents and Settings\User\My Documents\Someimage.png
if ErrorLevel = 0
  Click, %x%, %y%
  Sleep, 100
  Click, %x%, %y%
Please use code tags when posting code!
Keyboard: Logitech G15 FE - Mice: Logitech G9 FE, G502 FE, G602 - OS: Windows 10 Pro 64 Bit - AHK version:

Return to “Ask For Help”

Who is online

Users browsing this forum: cahek0404, flyingDman, kludgeofthegods, marin87, tmplinshi, Xtra and 154 guests