Skip to main content

[archive] copy test to windows clipboard

  • December 5, 2007
  • 1 reply
  • 0 views

[Migrated content. Thread originally posted on 05 December 2007]

I used a very old demo application I found on the Acu Support website that includes clipacu.dll to copy text to the clipboad. I 'appeared' perfect however after I copy data to the clipboard using this dll I seem to get a bunch of other 'junk' attached at the end of my data... I wonder if anyone else is using this dll to copy data to the clipboard and if so, is it working for you? Maybe I'm using it incorrectly...


77 WS-DATA-TO-COPY       PIC X(512)  VALUE IS SPACES.
MOVE "data to copy to clipboard." TO WS-DATA-TO-COPY.
CALL   "CLIPACU.DLL".
CALL   "CLRCLIP".
CALL   "CPYTOCLIP" USING BY REFERENCE WS-DATA-TO-COPY
                     BY VALUE 512.
CANCEL "CLIPACU.DLL".


Some of the data that gets appended to the end of my data seems like windows information, strange...

2007120408214900 8:21 AM : : 12/04/2007 Windows YNYYYYY025080NNY

1 reply

[Migrated content. Thread originally posted on 05 December 2007]

I used a very old demo application I found on the Acu Support website that includes clipacu.dll to copy text to the clipboad. I 'appeared' perfect however after I copy data to the clipboard using this dll I seem to get a bunch of other 'junk' attached at the end of my data... I wonder if anyone else is using this dll to copy data to the clipboard and if so, is it working for you? Maybe I'm using it incorrectly...


77 WS-DATA-TO-COPY       PIC X(512)  VALUE IS SPACES.
MOVE "data to copy to clipboard." TO WS-DATA-TO-COPY.
CALL   "CLIPACU.DLL".
CALL   "CLRCLIP".
CALL   "CPYTOCLIP" USING BY REFERENCE WS-DATA-TO-COPY
                     BY VALUE 512.
CANCEL "CLIPACU.DLL".


Some of the data that gets appended to the end of my data seems like windows information, strange...

2007120408214900 8:21 AM : : 12/04/2007 Windows YNYYYYY025080NNY
Never Mind, I figured out I need to String in LOW-VALUES after my text and that solved the problem...