I am programming a pushbutton through an Arduino Uno to be connected to a PC that will be running Flight Simulator X and I need to get it to run where when the button is pushed, it will play a short video introduction, then immediatly launch a saved flight file on flight simulator x, and run for about 5 minutes, then play another outro video and go back to a ready state of something like a looped graphic or video. I have the button wired to the board and been trying to figure out the code. I need a process or command that opens a file on the PC and any other suggestions anyone might have about how to best accomplish this task.
You realise that the only part of this project that your UNO can achieve is recognising that a button has been pressed and then send something to the PC. Everything else (including detection of the signal sent by the UNO) needs to be taken care of by some kind of software running on your PC.
All in all it would be simpler just to implement the whole thing as a hotkey on the PC.
I realize that is all the Arduino would be doing, but i need it to be that way and need to make it were when it is pressed, it can't be hit again and start over until it has played through. I can't just do a hot key being that the only control accessible after it is all setup will be the button to start the program and a control stick.
CMartinDPA:
need to make it were when it is pressed, it can't be hit again and start over until it has played through.
So you'd need to have a method of sending some signal to the arduino once the track has "played through."