Allows for some interaction with the foreground window:
you can test if a specific window/process is in the foreground
you can ask which window/process is in the foreground
you can make a window/process the foreground window
With this addition it is possible to change the script behavior based on the process in the foreground, e.g. map a wheel to vJoy when a race game is in the foreground or the secondary joystick if playing a civil flight simulator while the primary joystick is mapped when playing combat flight simulator.
Or you could make a script which puts your game window in the foreground when you press a joystick button.
Allows for some interaction with the foreground window:
With this addition it is possible to change the script behavior based on the process in the foreground, e.g. map a wheel to vJoy when a race game is in the foreground or the secondary joystick if playing a civil flight simulator while the primary joystick is mapped when playing combat flight simulator. Or you could make a script which puts your game window in the foreground when you press a joystick button.