kjpolker Posted June 3, 2017 Share Posted June 3, 2017 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 More sharing options...
genius257 Posted June 5, 2017 Share Posted June 5, 2017 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. My highlighted topics: AutoIt Package Manager, AutoItObject Pure AutoIt, AutoIt extension for Visual Studio Code Github: AutoIt HTTP Server, AutoIt HTML Parser Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now