QB64 Phoenix Edition
Disable Print Screen? - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2)
+--- Thread: Disable Print Screen? (/showthread.php?tid=2257)

Pages: 1 2


RE: Disable Print Screen? - Kernelpanic - 12-24-2023

I don't understand why one want to intercept "Print Screen". Especially since it's pointless. If that doesn't work, I just use "FastStone Capture". This allows me to copy everything that appears on my screen.

Well, maybe I should try to write a program that explains why there are no squares with five corners.  Cool

Happy New Year!
[Image: balloons-happy-new-year.gif]


RE: Disable Print Screen? - TerryRitchie - 12-24-2023

(12-24-2023, 08:06 PM)Kernelpanic Wrote: I don't understand why one want to intercept "Print Screen". Especially since it's pointless. If that doesn't work, I just use "FastStone Capture". This allows me to copy everything that appears on my screen.

Well, maybe I should try to write a program that explains why there are no squares with five corners.  Cool

Happy New Year!
[Image: balloons-happy-new-year.gif]
I can't really get into that. The software I'm writing is for someone else that has requested this functionality. I realize this can easily be gotten around by other software.


RE: Disable Print Screen? - SMcNeill - 12-25-2023

That's reason enough to do it.  "The boss said so", IS always a valid excuse, no matter what some folks might think.  When you're doing something for someone else, you do it the way they want -- even if it doesn't always make sense to you.

Give that a test run and let me know if it works for you as it should.  According to the return values on those functions, it *should*, but I swear by nothing until it's tested and proven to work in your own stuff.  Smile


RE: Disable Print Screen? - Kernelpanic - 12-25-2023

@Terry, if it's for a customer, then that's different. Sorry!

Does McNeill's suggestion work? I did a search online and what I found wasn't exactly positive. Maybe you should talk to the client again.

https://stackoverflow.com/questions/448106/how-do-i-prevent-print-screen

With script, below.
https://stackoverflow.com/questions/448106/how-do-i-prevent-print-screen

You can't. You can only attempt to scramble whatever gets captured, as discussed here: 
https://softwareengineering.stackexchange.com/questions/263112/detect-or-prevent-screen-capture-applications

https://stackoverflow.com/questions/46077468/disable-screen-capture-in-windows-forms-desktop-applications-using-c-sharp