// // COPYCLIP.VDM Christian Ziemski 10.11.1998 // 23.04.1999 // // Makes it easy to handle different text pieces to fill into the Windows clipboard. // Should work as tool while working with different Windows applications. // // // For easier access create a shortcut with the command: // // C:\VEDIT\VPW.EXE -X COPYCLIP.VDM C:\VEDIT\COPYCLIP.TXT // // Usage: // // Fill often used text into the file COPYCLIP.TXT. // // Position the cursor onto the desired line or mark a block. // // Press F12 to copy the line/block to the clipboard. // // Press F11 to exit VEDIT (or leave it open...). // //============================================================================ Key_Add("F11", "[VISUAL EXIT] exit", OK) Key_Add("F12", "[VISUAL EXIT] if (BB == -1){BB(BOL_Pos) BE(EOL_Pos) } CCB(BB,BE) BB(CLEAR)", OK) Win_Reserved('H',5,BOTTOM+NOBORDER) Win_Switch('H') Win_Color(48) Win_Clear() M(" Fill the Windows' Clipboard ----------------------------- F12 - copy the marked block or otherwise the whole cursor line to the clipboard F11 - close VEDIT") WS(1) return //========================================================================= // Key-Assignment for F12: // // if (BB == -1){ // BB(BOL_Pos) // BE(EOL_Pos) // } // Clip_Copy_Block(BB,BE) // BB(CLEAR) // exit