WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

FAQs - Frequently Asked Questions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Copying, Cutting and Pasting

Keywords: cut and paste using Sendkey 

Question:

Is there a function in WinBatch for copying other than using send keys?

Answer:

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.

Question:

How is cutting and pasting done?

Answer:

To tell an app to cut/copy/paste you can use:
	^x	^c	^v
i.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.

Question:

Can WinBatch do a snapshot and return text instead of graphics?

Answer:

No. The Snapshot function takes a graphic picture of the screen only, and thus cannot return text characters from a window with this 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