Jump to content

Use of mouse button 4 and 5 is missing


Greek
 Share

Recommended Posts

Hi,

I don't know where to post it so I post it here:

_WinAPI_Mouse_Event:

$iFlags:

$MOUSEEVENTF_XDOWN - Specifies that an X button was pressed
$MOUSEEVENTF_XUP - Specifies that an X button was released

 

To use it you still need $iData, but there is no information about it.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms646260(v=vs.85).aspx

You need XBUTTON1 ( 0x0001 ) and XBUTTON2 (0x0002) there. These are missing in the Constant.au3

So the Code for using MouseButton 4 and 5 is:

Sleep(2000)

_WinAPI_Mouse_Event($MOUSEEVENTF_XDOWN,0,0,0x0001)

Sleep(2000)

_WinAPI_Mouse_Event($MOUSEEVENTF_XUP,0,0,0x0001)

0x0002 for XBUTTON2. Should be updated, searched a few a hours in the msdn to figure it out how it works :)

Greetings Greek

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...