Opened 16 years ago

Closed 16 years ago

Last modified 16 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: Component: AutoIt
Version: Severity:
Keywords: controlclick mouseclick primary secondary Cc:


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'
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 Changed 16 years ago by Jon

  • Resolution set to completed
  • Status changed from new to closed

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

Completed ticket:27

comment:2 Changed 16 years ago by Jon

  • Version changed from to

comment:3 Changed 16 years ago by Jon

  • Milestone set to
  • Version changed from to

comment:4 Changed 16 years ago by Saunders <admin@…>

Awesome, thanks so much!

comment:5 Changed 16 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

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

as closed The ticket will remain with no owner.

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

Note: See TracTickets for help on using tickets.