Skip to content

Instantly share code, notes, and snippets.

@brenttaylor
Created October 23, 2012 10:23
Show Gist options
  • Save brenttaylor/3938054 to your computer and use it in GitHub Desktop.
Save brenttaylor/3938054 to your computer and use it in GitHub Desktop.
int main(int argv, char **args) {
EnumWindows(MyEnumProc, 0);
SetForegroundWindow(Wunderlist);
SetActiveWindow(Wunderlist);
SetFocus(Wunderlist);
//Simulate a Ctrl+N keyboard shortcut
SendKey(VK_CONTROL, FALSE, KeyDown);
SendKey(0x4E, FALSE, KeyDown);
SendKey(0x4E, FALSE, KeyUp);
SendKey(VK_CONTROL, FALSE, KeyUp);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment