Controlclick script doesnt work

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Amerykaa
Posts: 1
Joined: 08 May 2021, 06:42

Controlclick script doesnt work

08 May 2021, 06:53

Hi , I need help with my controlclick script, I need to get controlclick automatically click after 1500 ms but can't get it working with sleep. First controlclick working but second controlclick not working.
Sorry for my bad Eng ;p

Code: Select all

K::ControlClick, Button2, clumsy 0.2
Sleep, 1500
ControlClick, Button2, clumsy 0.2
return
User avatar
mikeyww
Posts: 26936
Joined: 09 Sep 2014, 18:38

Re: Controlclick script doesnt work

08 May 2021, 07:50

When you put the command on the same line as the hotkey, AHK assumes an implicit Return after that command. To fix the problem, you can simply move the command to the next line.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, mikeyww, roysubs and 167 guests