Detect ScreenShot

Everything else that doesn't fall into one of the other PB categories.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Detect ScreenShot

Post by Kwai chang caine »

Hello at all

I'm ask a question to me..in my head.
But the problem, it's that when i ask the question myself...i have never answer :oops:
It's the reason why, i ask the same question at you all, who have always the answers :D 8)

Believe you, that it's possible, to detect a screenshot make by another application ????

Good day
ImageThe happiness is a road...
Not a destination
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Detect ScreenShot

Post by Josh »

- register your program in the chain of clipboardviewers
- scan the windows callback to the message #WM_DRAWCLIPBOARD
- look what is in the clipboard

details are your problem :mrgreen:
sorry for my bad english
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Detect ScreenShot

Post by Kwai chang caine »

Hello JOSH

You mean that all the ScreenShot program use always ClipBoard ??? :roll:
Are you sure ????
Because i have a program freeware "SnapShot" who make ScreenShot and ask if i want save it on the drive ....
ImageThe happiness is a road...
Not a destination
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Detect ScreenShot

Post by Josh »

you are right. i didn't read your question exactly enough and didn't check, you are speaking from other applications.
sorry for my bad english
User avatar
codewalker
Enthusiast
Enthusiast
Posts: 331
Joined: Mon Mar 27, 2006 2:08 pm
Location: Spain

Re: Detect ScreenShot

Post by codewalker »

anti keyloggers do it all the time . . . .
There is a difference between knowing the code and writing the code.
May the code be strong in your projects.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Detect ScreenShot

Post by netmaestro »

I would say not, mainly because there are so many ways to go about it.
BERESHEIT
Mr Coder
User
User
Posts: 54
Joined: Tue Apr 13, 2010 8:02 am

Re: Detect ScreenShot

Post by Mr Coder »

Kwaï chang caïne wrote:detect a screenshot make by another application ????
No way. Any app can examine the screen at any time and record the pixels, without using the clipboard.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: Detect ScreenShot

Post by SFSxOI »

Good question Kwai, i'd like to know this too.
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
User avatar
ar-s
Enthusiast
Enthusiast
Posts: 344
Joined: Sat Oct 06, 2007 11:20 pm
Location: France

Re: Detect ScreenShot

Post by ar-s »

Don't you just have to clean the clipboard each xx ms ?
~Ar-S~
My Image Hoster for PB users
My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 3.x / 5.7x / 6 - W11 x64 - Ryzen 7 3700x / #Rpi4

Code: Select all

r3p347 : 7ry : un71l d0n3 = 1
Mr Coder
User
User
Posts: 54
Joined: Tue Apr 13, 2010 8:02 am

Re: Detect ScreenShot

Post by Mr Coder »

How is cleaning the clipboard going to help?
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Detect ScreenShot

Post by DarkDragon »

Sure, detecting a screenshot could be possible if you are rendering the desktop through your own codec. Haven't you ever wanted to take a screenshot from a movie and after inserting it in paint or such the screenshot still changes to the movie?
bye,
Daniel
User avatar
ar-s
Enthusiast
Enthusiast
Posts: 344
Joined: Sat Oct 06, 2007 11:20 pm
Location: France

Re: Detect ScreenShot

Post by ar-s »

Mr Coder wrote:How is cleaning the clipboard going to help?
Maybe the screenshot's software use clipboard to take the shot and save picture after that ?
~Ar-S~
My Image Hoster for PB users
My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 3.x / 5.7x / 6 - W11 x64 - Ryzen 7 3700x / #Rpi4

Code: Select all

r3p347 : 7ry : un71l d0n3 = 1
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: Detect ScreenShot

Post by SFSxOI »

I think it would be more a matter of detecting when that other application was doing a screen shot rather then detecting the method used to facilitate the screen shot. In other words, is there some sort of message to be intercepted from the application to the system that says its taking a screen shot.
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
Mr Coder
User
User
Posts: 54
Joined: Tue Apr 13, 2010 8:02 am

Re: Detect ScreenShot

Post by Mr Coder »

There's plenty of code samples in these forums that show how to take a screenshot without using the clipboard and without system messages.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: Detect ScreenShot

Post by SFSxOI »

Mr Coder wrote:There's plenty of code samples in these forums that show how to take a screenshot without using the clipboard and without system messages.
Perhaps I missed something, but he doesn't want to take a screen shot, he wants to detect when another appliction takes a screen shot.

Like where he said in his original post > "Believe you, that it's possible, to detect a screenshot make by another application ????" (ya kinda need to understand "Kwai-wan-neese" :) )
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
Post Reply