Jump to content

Recommended Posts

Posted (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 by Nine

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
  • Recently Browsing   0 members

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