#3803 closed Bug (No Bug)
ControlClick unaffected by MouseClickDownDelay
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.15.2 | Severity: | None |
| Keywords: | Cc: |
Description
I recently opened up a post discussing how the "MouseClickDelay" option would work on both MouseClick and ControlClick but MouseClickDownDelay would only work on MouseClick and not ControlClick.
I have tested the following syntax:
Opt("MouseClickDelay", "100") ;This works with MouseClick and ControlClick
Opt("MouseClickDownDelay", "100") ;This works with MouseClick but does nothing with ControlClick
AutoItSetOption ("MouseClickDelay","100") ;Same as above
AutoItSetOption ("MouseClickDownDelay","100") ;Same as above
(I tested without the "" marks surrounding the 100, same result)
I tested this on the latest version 3.3.15.2 and 3.3.14.2
To replicate this bug, feel free to use the code written by Nine:
Opt("MouseClickDownDelay", 250)
Local $hTimer = TimerInit()
ControlClick("", "", "", "left", 1, 100, 100)
ConsoleWrite (TimerDiff($hTimer) & @CRLF)
$hTimer = TimerInit()
MouseClick("left", 200, 200, 1, 0)
ConsoleWrite (TimerDiff($hTimer) & @CRLF)
Opt("MouseClickDownDelay", 10)
Opt("MouseClickDelay", 250)
$hTimer = TimerInit()
ControlClick("", "", "", "left", 2, 100, 100)
ConsoleWrite (TimerDiff($hTimer) & @CRLF)
$hTimer = TimerInit()
MouseClick("left", 200, 200, 2, 0)
ConsoleWrite (TimerDiff($hTimer) & @CRLF)
Attachments (0)
Change History (3)
follow-ups: 2 3 comment:1 by , 5 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:2 by , 5 years ago
Replying to Jpm:
Hi,
You right the Autoit code use Opt("MouseClickDownDelay",...) only for MouseClick().
The Opt("MouseclickDelay",...) is used in Mouse functions and also in the ControlClick to simultate the delay of the mouse displacement.
in specific case an extra delay of 10 is added when the focus is not at the right place
so there is not bug
comment:3 by , 5 years ago
Replying to Jpm:
Hi,
You right the Autoit code use Opt("MouseClickDownDelay",...) only for MouseClick().
The Opt("MouseclickDelay",...) is used in Mouse functions and also in the ControlClick to simultate the delay of the mouse displacement.
in specific case an extra delay of 10 is added when the focus is not at the right place
so there is not bug
Actually, that's not the issue which I am addressing. I am very aware that MouseClickDelay does affect the delay AFTER the click, but not the delay DURING the click. The fact that the delay DURING the click cannot be changed for ControlClick is the issue itself, in other words the bug is not fixed, the MouseClickDownDelay still refuses to affect the delay DURING the click of ControlClick

Hi,
You right the Autoit code use Opt("MouseClickDownDelay",...) only for MouseClick().
The Opt("MouseclickDelay",...) is used in Mouse functions and also in the ControlClick to simultate the delay of the mouse displacement.
in specific case an extra delay of 10 is added when the focus is not at the right place
so there is not bug