kawumm3000 Posted July 14, 2022 Posted July 14, 2022 Hello, is there a way to click on of the side buttons (or thumb button) on the mouse? Looks like MouseClick doesn't have the option. Thanks
Nine Posted July 14, 2022 Posted July 14, 2022 (edited) Thumb button is $XBUTTON1 and small finger button is $XBUTTON2. Here an example with thumb button : #include <WinAPISys.au3> Local $hWnd = WinGetHandle("[CLASS:CabinetWClass]") ConsoleWrite($hWnd & @CRLF) WinActivate($hWnd) WinWaitActive($hWnd) Global Const $XBUTTON1 = 1, $XBUTTON2 = 2 _WinAPI_Mouse_Event($MOUSEEVENTF_XDOWN, 0, 0, $XBUTTON1) _WinAPI_Mouse_Event($MOUSEEVENTF_XUP, 0, 0, $XBUTTON1) Edited July 14, 2022 by Nine kawumm3000 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy
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