Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- void EntrarComando(char * string) {
- keybd_event(
- 0x2F,
- 0x45,
- KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,
- 0
- );
- for(int i = 0; string[i]; i++) `
- keybd_event(
- (int) string[i],
- 0x45,
- KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,
- 0
- );
- keybd_event(
- 0x0D,
- 0x45,
- KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,
- 0
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement