Modify

Opened 10 months ago

Closed 10 months ago

Last modified 10 months ago

#3803 closed Bug (No Bug)

ControlClick unaffected by MouseClickDownDelay

Reported by: kianisan@… 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)

comment:1 follow-ups: Changed 10 months ago by Jpm

  • Resolution set to No Bug
  • Status changed from new to closed

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:2 in reply to: ↑ 1 Changed 10 months ago by kianisan@…

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 in reply to: ↑ 1 Changed 10 months ago by Kian

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

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.