Hello,
What I need to do is make a program that will run a Windows application and then send button (keyboard) commands (which I specify in the code), to the Windows application, eliminating the need for the user to get involved at all.
An example:
I want the c++ program to run the Windows application 'install.exe'. After the c++ program executes the file, the Windows application pops up with a window that has a disclamer (textbox), an I Agree checkbox, an I Disagree checkbox, and a 'Next >' button at the bottom. I want the c++ program to send the button (keyboard) commands:
Tab (selects the textbox disclamer)
Tab (selects the 'I Agree' checkbox)
SpaceBar (puts a checkmark in the 'I Agree' checkbox)
Enter (defaults to hitting the 'Next >' button)
This is basically what I want to accomplish by making this program. Any tips or comments would be great, and I appreciate you taking your time to read this. Thank you.
P.S. I tried making this program in VisualBasic, but I had some issues.
Travis
What I need to do is make a program that will run a Windows application and then send button (keyboard) commands (which I specify in the code), to the Windows application, eliminating the need for the user to get involved at all.
An example:
I want the c++ program to run the Windows application 'install.exe'. After the c++ program executes the file, the Windows application pops up with a window that has a disclamer (textbox), an I Agree checkbox, an I Disagree checkbox, and a 'Next >' button at the bottom. I want the c++ program to send the button (keyboard) commands:
Tab (selects the textbox disclamer)
Tab (selects the 'I Agree' checkbox)
SpaceBar (puts a checkmark in the 'I Agree' checkbox)
Enter (defaults to hitting the 'Next >' button)
This is basically what I want to accomplish by making this program. Any tips or comments would be great, and I appreciate you taking your time to read this. Thank you.
P.S. I tried making this program in VisualBasic, but I had some issues.
Travis