forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is there a need for this capability?
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6836
Location: Salford, UK

PostPosted: Tue Apr 06, 2021 12:39 pm    Post subject: Reply with quote

New DLLs and (in a separate download) new INCLUDE files are available here http://forums.silverfrost.com/viewtopic.php?t=4245. Only use the downloads for today (April 6 2021).

A revised sample program with resources can be downloaded from https://www.dropbox.com/s/c6azqvjmkczcp8q/capture.zip?dl=0.

p.s. At the moment the sample only works for 64 bits.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6836
Location: Salford, UK

PostPosted: Tue Apr 06, 2021 1:49 pm    Post subject: Reply with quote

I have now updated the downloads for the DLLs and INCLUDE files so that the sample program now works for 32 bits as well as 64 bits.

In the sample program it is necessary to call GetCursorPos@ rather than GetCursorPos. This is the call that was failing for 32 bits.
Back to top
View user's profile Send private message AIM Address
John-Silver



Joined: 30 Jul 2013
Posts: 1507
Location: Aerospace Valley

PostPosted: Tue Apr 06, 2021 5:47 pm    Post subject: Reply with quote

Paul,

the new download files appear to correspond to v8.71 of the proram.

Do they include ALL updates that I've seen dotted around various posts have been released on an 'as requested' basis for the last few months ?
_________________
''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2285
Location: South Pole, Antarctica

PostPosted: Wed Apr 07, 2021 2:34 am    Post subject: Reply with quote

Paul,
The size of saved are is a bit larger than the actual window size. Do you see the same ?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6836
Location: Salford, UK

PostPosted: Wed Apr 07, 2021 9:04 am    Post subject: Reply with quote

Dan

Yes. I noticed that but I don't know how to easily get the exact size. I have used GetWindowRect and even allowed for the width of the borders. Hopefully it can be tollerated.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2285
Location: South Pole, Antarctica

PostPosted: Wed Apr 07, 2021 6:21 pm    Post subject: Reply with quote

Paul,
it looks like the shadow of the window is also grabbed. These additional borders always catch some stuff and dirt which also exists on the screen, very annoying and disgusting and for sure requires additional editing to remove them defying the whole purpose of this workaround. So please find the way to kill these borders
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 960
Location: Morrison, CO, USA

PostPosted: Thu Apr 08, 2021 5:18 am    Post subject: Reply with quote

Paul,

I was able to test this, and it works very well in the 32 bit environment.

I see what Dan is speaking of, but for assistance in debugging, it is more than sufficient for that purpose.

I wonder what Microsoft does to figure the precise boundaries of the window to do the "grab". If I run across anything, I'll let you know!

Again, thanks for the capability!

Bill
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6836
Location: Salford, UK

PostPosted: Thu Apr 08, 2021 6:44 am    Post subject: Reply with quote

Dan

I did have an idea in the night which I will try.

I remember once getting 98% in a maths exam. Since then I try to be satisfied with the 98% even if others aren't.

I put a lot of work into that feature which was a freebe from me to you. If it doesn't suit your purpose then you are free not to use it.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6836
Location: Salford, UK

PostPosted: Thu Apr 08, 2021 8:07 am    Post subject: Reply with quote

The issue with the borders can be resolved if I call DwmGetWindowAttribute rather than GetWindowRect. At the moment this only works for 64 bits.

This fix will be included in the next release of ClearWin+.
Back to top
View user's profile Send private message AIM Address
wahorger



Joined: 13 Oct 2014
Posts: 960
Location: Morrison, CO, USA

PostPosted: Thu Apr 08, 2021 2:36 pm    Post subject: Reply with quote

Thanks, Paul!

I will be implementing this newer method in my product regardless of the border display. It is very much faster and less intrusive (system wise) than the simulated Alt+PrntScrn solution for my users.

I will be happy to wait for the 32-bit implementation changes.

Bill
Back to top
View user's profile Send private message Visit poster's website
DanRRight



Joined: 10 Mar 2008
Posts: 2285
Location: South Pole, Antarctica

PostPosted: Fri Apr 09, 2021 4:39 am    Post subject: Reply with quote

Bill, and as a bonus will sometimes clearly see on the borders what kind of extracurriculum activity goes in the monitors of your customers while they work Smile Smile Smile

And of course kudos to Paul for the trick
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 6836
Location: Salford, UK

PostPosted: Fri Apr 09, 2021 10:48 am    Post subject: Reply with quote

This feature is now ready for use and new DLLs are available for download via the sticky post.

Sample code can be downloaded here... https://www.dropbox.com/s/cumk2q12rifif6o/capture.zip?dl=0.
Back to top
View user's profile Send private message AIM Address
wahorger



Joined: 13 Oct 2014
Posts: 960
Location: Morrison, CO, USA

PostPosted: Fri Apr 09, 2021 11:18 pm    Post subject: Reply with quote

Thanks, Paul!!
Back to top
View user's profile Send private message Visit poster's website
DanRRight



Joined: 10 Mar 2008
Posts: 2285
Location: South Pole, Antarctica

PostPosted: Sun Apr 11, 2021 12:52 am    Post subject: Reply with quote

Paul, Getting runtime error for missing get_cursor_pos
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 1507
Location: Aerospace Valley

PostPosted: Sun Apr 11, 2021 7:51 pm    Post subject: Reply with quote

Paul wrote:
Quote:
I remember once getting 98% in a maths exam. Since then I try to be satisfied with the 98% even if others aren't.


... are you successful (with the striving )?

how old were you and do you remember the question(s) you gotted wrong ?
_________________
''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5  Next
Page 4 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group