Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 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 Changed 11 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 11 years ago by Jon

  • Version changed from 3.2.10.0 to 3.2.11.0

comment:3 Changed 11 years ago by Jon

  • Milestone set to 3.2.11.0
  • Version changed from 3.2.11.0 to 3.2.10.0

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

Awesome, thanks so much!

comment:5 Changed 11 years ago by TicketCleanup

  • Version 3.2.10.0 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

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.