Hello
I am new to windows programming .
I need your help . I want to start a
windows program and send Y and Q
keystrokes to it to push its buttons .
I am using Dev C++ ver 4.0
it is not working ... please help me . ThanksCode:#include <iostream.h> #include <stdlib.h> # include<fstream> # include<string> # include<conio.h> # include<time.h> # include<windows.h> # include<tchar.h> main() { system ("start raspppoe") ; keybd_event('y', 0, 0, 0); keybd_event('y', 0, KEYEVENTF_KEYUP, 0); keybd_event('q', 0, 0, 0); keybd_event('q', 0, KEYEVENTF_KEYUP, 0); system("exit") ; return ; }



LinkBack URL
About LinkBacks


