Program that simulates a button 4/5 button mouse
can be useful on G15 keyboards to name but 1 app
from
Stardock Forums
Code: c++
- //---------------------------------------------------------------------------
- #include
- #pragma hdrstop
- //---------------------------------------------------------------------------
- #pragma argsused
- WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
- {
- INPUT input[2];
- memset(input, 0, sizeof(input));
- input[0].type = INPUT_MOUSE;
- input[0].mi.dwFlags = MOUSEEVENTF_XDOWN; // no beneen
- input[0].mi.mouseData = XBUTTON1; // no beneen
- input[1].mi.dwFlags = MOUSEEVENTF_XUP; // no boven
- input[1].mi.mouseData = XBUTTON1; // no beneen
- SendInput(2,input,sizeof(INPUT));
- return 0;
- }
- //---------------------------------------------------------------------------