Re: how to call print screen and how to read window's clip board



On Jun 3, 7:06 am, NoS...@xxxxxxxxxxx (Bob Masta) wrote:
On Sat, 02 Jun 2007 18:00:43 -0700, Terence <spamt...@xxxxxxxxxx>
wrote:



It's a GENERAL problem requirement.
The code we have that we wish to modify is our own commercial code
sent to clients.

We just want to add the ability for the cliente to cut and paste
between our DOS versions of our software's screen contents and their
own WORD or other Windows softwares's screen contents.
(they already do it internal to the OS used).

That saved from WORD hopefully will be converted by us to ascii. That
pasted to the clipboard in our software will probably be Word-coded
international ascii table ascii with unspecified font, but we could
convert it to Rich Text Format or anything else simple.

But suggestions are welcome, but noting that the code we use will have
to be written by us to be legal.

Sounds to me like you don't really want a PrintScreen type of
capture, which (under Windows) results in a bitmap. You
just want to export the ASCII text from your DOS app to
the clipboard, and back. You can already do this when
running your app in a window on the desktop by clicking
on the little Mark, Copy, and Paste icons in that window's toolbar.
If your clients normally run your app full-screen, they'd have to hit
ALT+Enter to get to the desktop window, do the Cut/Paste,
and hit ALT+Enter to get back. No mods to your app are
needed.

But I agree it would be better to have programmatic access
to the clipboard from within your app. I've never tried
to communicate between DOS and Windows... but it sure
seems like it should be possible!

Best regards,

Bob Masta

D A Q A R T A
Data AcQuisition And Real-Time Analysis
www.daqarta.com
Scope, Spectrum, Spectrogram, Signal Generator
Science with your sound card!

Sounds like it would take a rewrite of the code.

Snipper.com does what he wants but you have to manually select the
text with the mouse
and it saves to a text file. The source is available

Sounds like a doable custom job.

Andy

.



Relevant Pages

  • Re: DOS applications ?
    ... A DOS batch file runs dos programs sequentially and can run ... command prompt window and keep the second command ... Windows APIs to do it. ... A 16-bit DOS app running on pure MS-DOS cannot launch another app ...
    (microsoft.public.vc.mfc)
  • Re: how to call print screen and how to read windows clip board
    ... own WORD or other Windows softwares's screen contents. ... That saved from WORD hopefully will be converted by us to ascii. ... just want to export the ASCII text from your DOS app to ... If your clients normally run your app full-screen, ...
    (comp.lang.asm.x86)
  • Re: Great SWT Program
    ... can have its own cursor/selection independently of the underlying ... it and the underlying app will contend for the one and only text-mode ... A DOS box is a full blown VM ... You normally can iconify in this circumstance in Windows too, ...
    (comp.lang.java.programmer)
  • Re: Confusing stack effects
    ... And DOS ... is the best way to start assembly programming. ... To learn todo 16-bit dos programming, for programming in windows later is the worst kind of advice. ... Learning to program for a Click&Go GUI is a tedious incredible complex job, compared to doing a dos app, where all you need to do is set up a loop, to take input that in all cases _you_ made the rules for. ...
    (alt.lang.asm)
  • Re: One thing I noticed
    ... I remember sitting down with my boss once and he asked me what ... > for the existing app. ... Your reference to a port from DOS to Windows does not fit your argument. ...
    (microsoft.public.vb.general.discussion)