I’m looking for a way to programatically generate keypress events in a C++ wxWidgets app, for testing a control that I had written.
Are there ways to do this?
Thanks a lot for the help!
Sahas
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should first build a wxKeyEvent object, fill it with the necessary key information, and then call the ProcessEvent method of the target control.