Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable Print Screen?
#4
(12-15-2023, 09:11 PM)TerryRitchie Wrote: One method I came up with was using _CLIPBOARDIMAGE to "poison the well" so to speak. Any program I write would need to write garbage to the clipboard periodically like the example below

Code: (Select All)
'Poison the well

image = _NEWIMAGE(100, 100, 32)
_DEST image
PRINT
PRINT
PRINT "     NO!"

_DEST 0

DO
    SLEEP 1
    _CLIPBOARDIMAGE = image
LOOP UNTIL INKEY$ <> ""
SYSTEM
This could also work under Windows.


Code: (Select All)
SCREEN _NEWIMAGE(800, 600, 32)
DO
    CLS
    COLOR _RGB32(177, 177, 177)
    PRINT "Monitoring clipboard..."
    IF img& < -1 THEN _FREEIMAGE img&
    img& = _CLIPBOARDIMAGE
    IF img& < -1 THEN
        Shell "cmd /c echo off | clip"
       END IF
    _DISPLAY
    _LIMIT 10
LOOP


But starting with Win 10, the clipboard can store more than one page.
Reply


Messages In This Thread
Disable Print Screen? - by TerryRitchie - 12-15-2023, 08:01 PM
RE: Disable Print Screen? - by TerryRitchie - 12-15-2023, 09:11 PM
RE: Disable Print Screen? - by Steffan-68 - 12-15-2023, 10:28 PM
RE: Disable Print Screen? - by TerryRitchie - 12-16-2023, 05:05 AM
RE: Disable Print Screen? - by mnrvovrfc - 12-15-2023, 10:08 PM
RE: Disable Print Screen? - by SMcNeill - 12-15-2023, 10:32 PM
RE: Disable Print Screen? - by SMcNeill - 12-15-2023, 10:36 PM
RE: Disable Print Screen? - by TerryRitchie - 12-16-2023, 05:07 AM
RE: Disable Print Screen? - by SMcNeill - 12-24-2023, 05:53 PM
RE: Disable Print Screen? - by SMcNeill - 12-24-2023, 05:55 PM
RE: Disable Print Screen? - by Kernelpanic - 12-24-2023, 08:06 PM
RE: Disable Print Screen? - by TerryRitchie - 12-24-2023, 10:06 PM
RE: Disable Print Screen? - by SMcNeill - 12-25-2023, 12:13 AM
RE: Disable Print Screen? - by Kernelpanic - 12-25-2023, 07:45 PM



Users browsing this thread: 21 Guest(s)