Send something through Serial even with Processing minimized

Hello,

I'm currently working with a little car that responds to the same movements than the car from a PC game but I'm having a little problem involving Processing and Serial input/output. I made a script that catches what key was pressed, send it to the Arduino through Serial I/O and the arduino controls some motors according to the expected movements but it only works when the Processing software/window is open. Is there anyway to make it work even with the Processing software/window minimized?

I want to keep the game in fullscreen mode and I want that the information about which key was pressed arrives to the game(it is what will control the game) and to the processing software(that will send it to Arduino). How can I do this?

Thank you.

I made a script that catches what key was pressed, send it to the Arduino through Serial I/O and the arduino controls some motors according to the expected movements but it only works when the Processing software/window is open.

Of course. That's because pressing a key generates an event, and Windows dispatches events. Only applications that are not minimized are notified of events like mouse movement and key presses.

Is there anyway to make it work even with the Processing software/window minimized?

No, but you could write your own application that registered for keyboard events but had no window.

I want to keep the game in fullscreen mode and I want that the information about which key was pressed arrives to the game(it is what will control the game) and to the processing software(that will send it to Arduino). How can I do this?

I'm missing something here. If the game is active, it gets right-of-first refusal on keyboard events. If it deals with the event, usefully or not, then the event is not available for other applications (like Processing or your application) to deal with. If the game doesn't expect keyboard events, why not let Processing be open behind the game window?