Jump to content

Mouse Click side buttons?


Recommended Posts

I have been searching the internet for more time than I thought would be necessary in order to figure out the syntax for Mouse Clicking with more buttons than just left, right, middle.

I want to ControlSend or ControlClick Mouse Button 5 if at all possible. I saw somewhere that button 5 is X2 but this does not work...

While 1
   WinActivate($hWnd)
   WinWaitActive($hWnd)
   ControlClick($hWnd, "", "","X2")
   Sleep(15000)
WEnd

 

Link to comment
Share on other sites

Hi @kjpolker.

I'm not sure if something already made in AutoIt is available.

If not, then SendInput seems to be one solution, with the INPUT structure containing the MOUSEINPUT structure.

It supports XBUTTON1 and XBUTTON2.

You may have luck with window messages, but if not, the suggestion above would be a better shot. Here's a answer from stackoverflow : Simulate mouse click for side buttons

 

Anyway, i hope some of this is helpful to you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...