FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


Screen Capture project

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog Tips & Samples
View previous topic :: View next topic  
Author Message
Steve Lympany



Horsham, England
Joined: 31 Mar 2001
Posts: 1152

PostPosted: 21 Sep 2010 18:58    Post subject: Screen Capture project Reply with quote

Find attached a VIP3 project that captures the screen (picture), and displays it in a form.

It is simply an update of Rob K's work (Vitalik) (thanks Rob)

http://discuss.visual-prolog.com/viewtopic.php?t=6896

The project contains his dll in the EXE folder.

Maybe there are other ways, without the need for the DLL....??

Steve



screenCaputure.zip
 Description:
screen capture project

Download
 Filename:  screenCaputure.zip
 Filesize:  28.01 KB
 Downloaded:  884 Time(s)

Back to top
View user's profile Send private message Visit poster's website
Vitaly Markov



Krasnodar, Russia
Joined: 30 Nov 2003
Posts: 73

PostPosted: 22 Sep 2010 8:07    Post subject: Reply with quote

I did capture of the screen (static picture only) as follows (2000 year, Visual Prolog 5.2):
1. The size of task window should be maximal.
2. The window should be transparent.
3. Capture of screen (VIP5.2):

  task_win_eh(_Win,e_MouseDbl(_PNT,_ShiftCtlAlt,_Button),0):-!,
   H = vpi_GetAttrVal(attr_screen_height),      % get screen height
   W = vpi_GetAttrVal(attr_screen_width),      % get screen width
   PICTURE = pict_GetFromWin(_Win,rct(0,0,W,H)),          % capture
   PICTURE1 = pict_Rotate(PICTURE,pictRotate_180deg),  % rotation of "screen"
   pict_Draw(_Win,PICTURE1,pnt(0,0),rop_SrcCopy),        %  Smile)
   pict_Destroy(PICTURE),
   !.

This code till now works.
I believe, that the main idea is made in points 1 and 2.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog Tips & Samples All times are GMT
Page 1 of 1

 
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
You cannot attach files in this forum
You can download files in this forum