winnitron / WinnitronLauncher

The official Winnitron launcher! The meat and potatoes of the Winnitron.
winnitron.com
MIT License
34 stars 7 forks source link

Hold "Home" to force quit #31

Closed mrmwiebe closed 7 years ago

mrmwiebe commented 7 years ago

This would be nice.

mrmwiebe commented 7 years ago

Don't think this is possible in Unity alone. Would probably need some sort of watcher helper app or maybe it can be done with AutoHotKey? This might be an undertaking....

aaronklaassen commented 7 years ago

Could be, yeah. Worth looking into, though.

mrmwiebe commented 7 years ago

I think that this can be done with AutoHotKey. I've asked in the forums.

Ludonaut commented 7 years ago

On Linux you can run programs as child processes and set up watchdog scripts.

It seems there is an equivalent in Windows. Google brought me here: https://msdn.microsoft.com/en-us/library/windows/desktop/ms686722(v=vs.85).aspx but I have no idea how this would work with Unity.

mrmwiebe commented 7 years ago

One day we'll use switch to Linux. ;)

Unity already can do this force closing stuff, it's more a matter of watching keyboard input in the background while still giving focus to the game.

mrmwiebe commented 7 years ago

OH YEAH. The launcher will now kill a game by idling OR by holding down the home button for 3 seconds.