Sendshortcut
From OllyDbg Plugin API
Emulates either global keyboard shortcut or shortcut in some CPU subwindow. Designed primarily for use in command line plugin.
void Sendshortcut(int where,ulong addr,int msg,int ctrl,int shift,int vkcode);
Parameters:
where - addressee of the emulated keyboard shortcut:
| PM_MAIN | Main window (global shortcut) |
| PM_DISASM | CPU Disassembler |
| PM_CPUDUMP | CPU Dump |
| PM_CPUSTACK | CPU Stack |
| PM_CPUREGS | CPU Registers |
addr - for all CPU subwindows except PM_CPUREGS, address to which shortcut is applied. Ignored if where is PM_CPUREGS or PM_MAIN;
msg - keyboard message to emulate: WM_KEYDOWN, WM_SYSKEYDOWN or WM_CHAR;
ctrl - emulated state of Control key on the keyboard (0 - released, 1 - pressed);
shift - emulated state of Shift key on the keyboard (0 - released, 1 - pressed);
vkcode - key to emulate, character or one of VK_xxx (for example, VK_F1 to emulate F1 key).