// 不显示窗口
#pragma comment(linker, "/subsystem:\"windows\" /entry:\"wmainCRTStartup\"" )
int _tmain(int argc, _TCHAR* argv[])
{
// Ctrl + F8
RegisterHotKey(NULL, 1, MOD_CONTROL, VK_F8);
//setMousePos();
MSG msg = { 0 };
while (GetMessage(&msg, NULL, 0, 0))
{
if (msg.message == WM_HOTKEY)
{
printf("WM_HOTKEY");
MessageBoxA(NULL, "WM_HOTKEY", "OK", MB_OK);
}
//Sleep(1000);
}
getchar();
return 0;
}