Created
January 18, 2014 01:09
-
-
Save pkrumins/8484697 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <cstdio> | |
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int nCmdShow) { | |
while (1) { | |
HWND dialog = FindWindow("MozillaDialogClass", "FireFox Update"); | |
if (dialog) { | |
printf("Found dialog: %x\n", dialog); | |
HWND dialogItem = NULL; | |
SendMessage(dialog, WM_CLOSE, 0, 0); | |
} | |
Sleep(2000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment