Open leijurv opened 5 years ago
Better be cross platform
i'll do gnome unity and mac osx, you can do the other ones :)
Is this suggestion stemming from the retard who posted his coords in the discord?
Is this suggestion stemming from the retard who posted his coords in the discord?
Yes
you can do the other ones :)
No
Is this suggestion stemming from the retard who posted his coords in the discord?
yes you can thank qorp for this
spicy helped as well
🦍
🦍
I think the only sane way to do detect OS level screenshots on windows is detecting PrintScreen key events... Which only are only dispatched when the game is focused and assume normal keybinds and instant screenshots (as opposed to snipping tools for example). There may be a lower level key even system you can hook into to get out-of-focus key events but this'll likely be hacky and system dependant.
You could of course also do some low level hooks and try to detect images being stored into memory/storage/streamed through memory to somewhere but this would likely end up being hacky and invasive. Or you could try and detect people reading from one of the various places the window/screen bitmap ends up and somehow filter out cases where it is a screenshot being taken...
I suspect it's a similar deal on other systems, unless one of them has a screenshot event you can hook into (they probably don't for security reasons).
I
bonus points detect OS level screenshot not just F2