/* Double clic */
/* Progmatique.fr */
#include <windows.h>
int __stdcall WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow)
{
// simulation d'un double clic gauche
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); // Appuie bouton gauche
Sleep(1); // Pour pas aller trop vite ^^
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); // Relache bouton gauche
Sleep(1);
Sleep(100);
// simulation d'un double clic droit
mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0); // Appuie bouton droit
Sleep(1);
mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0); // Relache bouton droit
Sleep(1);
return 0;
}