Hello everybody,
I am trying to make a program that simulates certain keystrokes on another program. My problem is that if the user terminate abnormal and sudden the program (Ctrl+C) then sometimes the Alt button get stacks at the down position.
What i need to know is, if there is any way to perform some actions at the end of the progam, even if it finish abnormal like the above situation. I tried this example:
1 2 3 4 5 6 7 8
class KeepRunning {
public:
~KeepRunning() {
// Whatever code you prefer to keep the program running, e.g.
cout << "Program shutdown...";
system("pause"); // "Press enter"
}
}RunFlorestRun;