Right now I have a small personal project that I have looked for a thousand ways to complete and I have not been able to, I always get stuck in the programming part of Arduino.
My plan is the following, and I humbly ask for your help.
I want to be able to program an Arduino to perform a single action after receiving an input signal. Either from an open or closed circuit with the same pins of the Arduino Nano. (I know that part can be done, similar to a PLC, since I have done it) what I am missing is that when receiving that signal the Arduino activates a key or function in windows, which activates or triggers a task previously set with another program.
1-The power goes out in the house.
2-Through a NO (normally open) or NC (normally closed) circuit using the same Arduino with a relay, the input signal that warns of the power failure is sent.
3-The Arduino executes as output signal a function or command in the PC, for example "press F6".
4-That the action is repeated when the power returns to the house, like when the input signal is interrupted or returns to its primary state of rest.