Highlighted
Absent Member.
Absent Member.
2250 views

[archive] select text in floating window

[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
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] select text in floating window

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.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] select text in floating window

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.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.