| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Thu Sep 04, 2003 1:45 pm Post subject: Screen Capture |
|
|
Is there a way to screen capture and save to a file without a DLL in vds5?
Thanks _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Sep 04, 2003 3:20 pm Post subject: |
|
|
You can capture the screen to the clipboard using window send,@key(print). After that you'd have to paste it into Windows Paint and save it using other window send commands, I reckon. I can't think of any way of doing it without some external program. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Sep 04, 2003 4:20 pm Post subject: |
|
|
It should be possible by doing the first thing Julian said (window send,@key(print)), and by using some clipboard APIs. That way you can get the binary value of the contents of the clipboard (don't ask me how ) and write it to a file with the binfile command. _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Sep 04, 2003 5:09 pm Post subject: |
|
|
It should be possible to capture even a window or a dialog element e.g a vds bmp picture enclosed by a line dialog element to a EMF enhanced metafile by creating a compatible DC (device context) all with API and no dlls at all . I tried lot but some error is causing the file saved to zero bytes so I gave up.
| Quote: | | That way you can get the binary value of the contents of the clipboard |
I don't think it's that easy. you should process the entire bag of the bitmap data then the headers in relation to it - I am not an expert but - I fear even if it were* possible in VDS time taken would be prohibitively long.
* I think 8 parameter lmit anyway wont permit it.
Regards _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Sep 11, 2003 8:24 am Post subject: |
|
|
| Quote: | | I think 8 parameter lmit anyway wont permit it. |
In the update, which will hopefully be released very soon, this limit has been increased to 12. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Sep 11, 2003 9:54 am Post subject: |
|
|
Thank you very much Jules.
It adds around 40 more API's to VDS compatable ones.
Eagely waiting for the update _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension
Last edited by CodeScript on Fri Sep 12, 2003 2:44 am; edited 1 time in total |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu Sep 11, 2003 12:46 pm Post subject: |
|
|
hi jules,
would it be possible, and allowable, for you to let us know what the update will include...fixes? new features?...if you have the time and the inclination
serge _________________
|
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Sep 11, 2003 3:45 pm Post subject: |
|
|
Not really, because I'm not an employee of Commercial Research and they are somewaht touchy about anyone releasing information unofficially as Garrett also knows. Most if not all of the bugs that have been mentioned here have been fixed if they could be fixed, but it wasn't the intention to add new features. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Sep 11, 2003 9:05 pm Post subject: |
|
|
| jules wrote: | | Quote: | | I think 8 parameter lmit anyway wont permit it. |
In the update, which will hopefully be released very soon, this limit has been increased to 12. |
THANK YOU!
 _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Sep 12, 2003 10:03 am Post subject: |
|
|
ok thanks jules
serge _________________
|
|
| Back to top |
|
 |
|