Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: cut and paste using Sendkey
If you want to capture a screen of text to the clipboard and are using a Windows program, like Notepad, the following might work.
SendKey("{HOME}") ; get cursor to upper left of file SendKey("+{END}") ; Highlight from cursor to end of file SendKey("^c") ; Copy highlighted stuff to clipboard.
^x ^c ^vi.e., Ctrl-X, Ctrl-C, Ctrl-V.
In some older applications, Ctrl-V doesn't work for pasting, so you might try using Shift-Insert for pasting. That was the old keyboard shortcut for pasting, and some applications still use it.
WinBatch also has the Clipput(), Clipappend(), and ClipGet() functions, but this is probably not what you want.
Some high-end applications, like Word and Excel, can put stuff in the clipboard, via DDE Commands. WinBatch can retrieve these with the ClipGet() function.
Article ID: W12986
Filename: Copying Cutting and Pasting.txt
File Created: 1999:04:15:16:50:58
Last Updated: 1999:04:15:16:50:58