FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Save Screen
Posts: 603
Joined: Sun May 04, 2008 08:44 PM

Save Screen

Posted: Fri Sep 05, 2008 03:30 PM

Hey there boy

someone know how i need to make to save screen "Print Screen of all Window " and save to file.bmp ?

im trying use ScreenFile("teste.bmp") more i dont know if it is right, i open in software of imagem and no show screen only message error.

thanks

Posts: 56
Joined: Wed May 23, 2007 02:01 PM

Save Screen

Posted: Fri Sep 05, 2008 08:05 PM
cBmpFile = 'c:\myscreen.bmp'

if oWnd:SaveToBmp( cBmpFile )
   ? 'Done ! Saved in '+cBmpFile
else
   ? 'Error ! Don't save'
endif


regards (um abraço)
Yury Marcelino Al
yury030575@yahoo.com.br
vimansca@vimansca.com.br
Leme / SP - Brasil
Posts: 603
Joined: Sun May 04, 2008 08:44 PM

Cool

Posted: Fri Sep 05, 2008 11:21 PM

but it only save ownd the fivewin and other window opened in windows no is save right ??

dont have a command that do the same that print screen of window

thanks

Posts: 464
Joined: Tue May 16, 2006 07:47 AM

Save Screen

Posted: Sat Sep 06, 2008 02:53 AM

Does the print screen button work from within a FiveWin program? I imagine it does. If so, I wonder would it be possible to put the right key code into the keyboard buffer - probably wouldn't work but it might be worthwhile attempting.

There are utilities that do this under windows - both freeware and stuff you have to pay for - that you could shell out to using RUN command or WinExec() function or something. Some may still operate off PrintScreen button but some of the free ones come with source code. See:

http://graphicssoft.about.com/od/screen ... indows.htm

So you should be able to modify them to run off a command line.

Linux, of course, includes a specific program for doing this (gnome-screenshot) that you can run from the menu or via PrintScreen key or other configurable key combination or include on any panel but I guess that doesn't help you.

Good luck
xProgrammer

Continue the discussion