Modify ↓
#27 closed Feature Request (Completed)
ControlClick with alternate mouse buttons (Like MouseClick's Primary, Secondary, Main & Menu)
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | 3.2.11.0 | Component: | AutoIt |
| Version: | Severity: | ||
| Keywords: | controlclick mouseclick primary secondary | Cc: |
Description
Copied from this post
I was just wondering if it would be possible to get the same alternate mouse buttons that MouseClick() uses (Primary, Secondary, Main, Menu) to work in ControlClick().
Like the following:
ControlClick('Calculator', '', 'Button1', 'secondary')
Instead of the following:
$sPrimary = 'left'
$sSecondary = 'right'
$iSwap = RegRead('HKCU\Control Panel\Mouse', 'SwapMouseButtons')
If $iSwap Then
$sPrimary = 'right'
$sSecondary = 'left'
EndIf
ControlClick('Calculator', '', 'Button1', $sSecondary)
I know the above works fine, but if this isn't too much of a task, it could certainly make some code shorter.
Thanks for reading.
Copied from this post
Attachments (0)
Change History (5)
comment:1 by , 18 years ago
| Resolution: | → completed |
|---|---|
| Status: | new → closed |
comment:2 by , 18 years ago
| Version: | 3.2.10.0 → 3.2.11.0 |
|---|
comment:3 by , 18 years ago
| Milestone: | → 3.2.11.0 |
|---|---|
| Version: | 3.2.11.0 → 3.2.10.0 |
Note:
See TracTickets
for help on using tickets.

(In [2860]) Changed: ControlClick() now accepts the same mouse buttons as MouseClick() - left/right/middle/primary/secondary/main/menu.
Completed ticket:27