silmarilen wrote:
this is already happening?
my osu automatically pauses when it isnt the selected window
If you specifically alt-tab out of osu during a map it will pause, but if another application comes to the front over Osu, it wiill not. Osu doesn't seem to properly monitor when it's in focus or not. If you go out of your way to put it specifically out of focus with an alt-tab that makes it pause, but if it simply loses focus to another program it does nothing.
eternity23 wrote:
My main problem is that I generally play Osu while waiting in queue for league, and when queue pops for league, it rips the cursor way off to the left side of the screen, and then just keeps going. Same thing with twitch streams if the person you're watching starts hosting someone else. If any other application takes focus away from Osu! for any reason, you simply lose the match. A feature to automatically pause when focus is lost is pretty key and pretty simple, imo. I can probably make a script to do it with AHK in like 4 lines. And probably will now that I think about it.
So i did. It's not 100% reliable due to AHK having issues sending keys sometimes, but for me it works 99% of the time. If it's not working consistently for you, try increasing the times slightly of the sleep commands in there, by like 50 millisecond intervals until it works. Mind, the longer the sleep, the more notes you miss before it pauses for you. Note: I am a novice when it comes to using AHK, so this script is very very basic and doesn't account for all circumstances, if you can improve it, feel free to do so.
Osu Focus Fix:
http://puu.sh/c15Ew/2289c20a1f.ahkF11 pauses the script, F12 terminates it.
P.S. The biggest drawback is that if you alt-tab out of osu or otherwise pull out of it yourself, the script will still activate, so you'll want to pause it before doing so. I'm sure this can be fixed, but I don't know how.