Do you have a recommendation for a program that can run in windows and send continous simple commands like 1, 2, 3... or F, B, R, L?? Or do I have to make one myself?
I have written a small sample of what I want the program to do:
Code:
#include <iostream.h>
#include <conio.h>
int main(){
char inn;
inn=getch();
while (inn!='p'){
switch (inn){
case 'w':
while (inn=='w'){
cout << "FWD\n";
inn=getch();}
break;
case 's':
while (inn=='s'){
cout << "BCK\n";
inn=getch();}
break;
case 'a':
while (inn=='a'){
cout << "LFT\n";
inn=getch();}
break;
case 'd':
while (inn=='d'){
cout << "RGT\n";
inn=getch();}
break;}
}
return 0;
}
The cout function here is only a stand in for a function that sends data out through a COM port. It is important that the program sends data all the time when a key is being held down.