Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#27 closed Feature Request (Completed)

ControlClick with alternate mouse buttons (Like MouseClick's Primary, Secondary, Main & Menu)

Reported by: Saunders <admin@…> 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 Jon, 18 years ago

Resolution: completed
Status: newclosed

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

Completed ticket:27

comment:2 by Jon, 18 years ago

Version: 3.2.10.03.2.11.0

comment:3 by Jon, 18 years ago

Milestone: 3.2.11.0
Version: 3.2.11.03.2.10.0

comment:4 by Saunders <admin@…>, 18 years ago

Awesome, thanks so much!

comment:5 by TicketCleanup, 18 years ago

Version: 3.2.10.0

Automatic ticket cleanup.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.