Mouse Event
How would I add a right mouse click event?
1 2 3 4 5 6 7 8 9 10 11 12
|
#include <iostream>
#include <Windows.h>
#include "Mouse.h"
int main()
{
}
|
Last edited on
1 2 3 4
|
mouse_event( MOUSEEVENTF_RIGHTDOWN, 0, 0, 0 );
// may execute too fast so wait a bit
Sleep( 10 );
mouse_event( MOUSEEVENTF_RIGHTUP, 0, 0, 0 );
|
Topic archived. No new replies allowed.