I'm working on a project to interact with media players using a Sharp IR sensor. I get the distance between the sensor and my hand and depending on that different actions will happen. I started with video files but now I'd like to extend this type of interaction to pdf files.
At the moment I can interact with videos in VLC using one sketch, and I have a different sketch to work with pdf files in Adobe. I do this because the interaction is not exactly the same with videos and documents, but the ideal case would be to automatically change the interaction depending on what type of file/software I have opened in my laptop.
Is there any way to send this information to the Arduino board?
From what I read I can send byte values through Serial.read(), but I have no idea of how to send that type of information (what software is active in the laptop) or if it is even possible.
PS: sorry if I'm asking something stupid, I'm fairly new on this