You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 29, 2022. It is now read-only.
This script works fine, except when the cursor is occupied by another application or similar.
Basically, when I have a game like Minecraft open, Minecraft is using the cursor. When I run this script from a hotkey, scrot(?) cannot get a hold of the cursor so it fails. The cursor has to be free, as if I were to pause the game.
Opening a terminal first makes minecraft loose focus and I get my cursor, which works, but I'd rather have it bind to a key.
Is there a way for the script to make what is having the mouse occupied to free the cursor? Or is there some other way I can fix this?
This script works fine, except when the cursor is occupied by another application or similar.
Basically, when I have a game like Minecraft open, Minecraft is using the cursor. When I run this script from a hotkey, scrot(?) cannot get a hold of the cursor so it fails. The cursor has to be free, as if I were to pause the game.
Opening a terminal first makes minecraft loose focus and I get my cursor, which works, but I'd rather have it bind to a key.
Is there a way for the script to make what is having the mouse occupied to free the cursor? Or is there some other way I can fix this?