How to double-click with FindClick? Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
carno
Posts: 150
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")
Return
User avatar
Scr1pter
Posts: 771
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

F6::
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%
}
return
I ignore every thread which contains the P-word :x
(Hint: It rhymes on Shython)
Please do not support cheaters!
Keyboard: Logitech G15 FE - Mice: Logitech G9 FE, G502 FE, G602 - OS: Windows 7 Pro 64 Bit - AHK version: 1.1.29.00

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Helgef, nacken012 and 84 guests