I am wondering how feassible it will be to allow an Arduino (currently Uno but may be the micro later on) to allow me to convert the state of a toggle switch to that of a momentary button through a 12V relay. The reason I want to do this is that I have a case that only has an on/off toggle and want to use it to turn on a computer, however computers only turn on with momentary buttons.
Using some code and some logic I thought I could change it so that when the switch toggles on that the ardunio triggers the relay to turn on momentarily simulating a power switch being pressed, then turning off. When the switch is toggled off the arduino would trigger the relay on for a longer duration, then eventually turn off, which would make the Windows machine turn off (like holding down the power button).
I am also wanting to control Windows Volume through a slider, which should be easy, as it essentially should be a pot, the Arduino interpreting it and then sending either a keyboard hotkey back to the system which Windows would recognize and the volume would be changed (don't know how easy this is to do Arduino side) OR it would communicate to a simple program that starts with Windows in the background which would adjust the volume when it gets a command from the Arduino.
Love to hear how feasible or doable either are and potential parts that may be the best to accomplish this job.