Sign in to follow this  
Followers 0
kjpolker

Mouse Click side buttons?

2 posts in this topic

#1 ·  Posted

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

 

Share this post


Link to post
Share on other sites



#2 ·  Posted

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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0