Skip to main content

[archive] select text in floating window

  • June 29, 2006
  • 3 replies
  • 0 views

[Migrated content. Thread originally posted on 26 June 2006]

Hi,

We use graphical and non-graphical windows in our application.
Users can select, copy and paste text in graphical windows(entry-field), but they can't do the same thing when screen is displayed by non graphical window (floating).

Is there a way to select an area of the floating window , copy and paste the result in notepad (like msdos window) ?:confused:

Regards,
GUIRPS

3 replies

[Migrated content. Thread originally posted on 26 June 2006]

Hi,

We use graphical and non-graphical windows in our application.
Users can select, copy and paste text in graphical windows(entry-field), but they can't do the same thing when screen is displayed by non graphical window (floating).

Is there a way to select an area of the floating window , copy and paste the result in notepad (like msdos window) ?:confused:

Regards,
GUIRPS
I use the following method to capture text from non-graphical screens. It is somewhat crude, but the only way I have been able to get it to work.

This program activates the mouse. The user clicks and holds down the left button while dragging over the area to capture. When the mouse button is released the program turns off the mouse and accepts the data from the screen. If the user is a thin client, the data is saved to disk and then a program (filetoclip.exe) is used to load the data into the clip board. I can supply this program if needed. If not thin client, the a DLL (clipacu.dll) is used to load directly into the clip board. I found this DLL either on the forum or on the ACUCobol web site.

One down side of this program is that it will clear video attributes from the copied area.

[Migrated content. Thread originally posted on 26 June 2006]

Hi,

We use graphical and non-graphical windows in our application.
Users can select, copy and paste text in graphical windows(entry-field), but they can't do the same thing when screen is displayed by non graphical window (floating).

Is there a way to select an area of the floating window , copy and paste the result in notepad (like msdos window) ?:confused:

Regards,
GUIRPS
I use the following method to capture text from non-graphical screens. It is somewhat crude, but the only way I have been able to get it to work.

This program activates the mouse. The user clicks and holds down the left button while dragging over the area to capture. When the mouse button is released the program turns off the mouse and accepts the data from the screen. If the user is a thin client, the data is saved to disk and then a program (filetoclip.exe) is used to load the data into the clip board. I can supply this program if needed. If not thin client, the a DLL (clipacu.dll) is used to load directly into the clip board. I found this DLL either on the forum or on the ACUCobol web site.

One down side of this program is that it will clear video attributes from the copied area.

[Migrated content. Thread originally posted on 26 June 2006]

Hi,

We use graphical and non-graphical windows in our application.
Users can select, copy and paste text in graphical windows(entry-field), but they can't do the same thing when screen is displayed by non graphical window (floating).

Is there a way to select an area of the floating window , copy and paste the result in notepad (like msdos window) ?:confused:

Regards,
GUIRPS
Thanks brumbaug,

It's works great !! I was using clipacu.dll but i didn't know how to do with the mouse.

I've added line in your cobol source to convert lines and colummns with "|" or " ".:

INSPECT DATA-FLD CONVERTING
X"0102030405060708090A0B0C0D0E0F1011" TO
" -| |-|- ".


For Thin client, I'm using the clipacu.dll of windows station and declare CPYTOCLIP in the configuration file:
clipacu.dll @[DISPLAY]:C:\\MyApplication\\dll\\clipacu.dll
CPYTOCLIP @[DISPLAY]:CPYTOCLIP

GUIRPS.