Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: clipget 1034 error clipboard
clip=clipget()I'm getting the following error:
1034: clipboard owned by another applicationWhy is this happening?
Try adding a TimeDelay in between the ClipPut and ClipGet.
The other possibility is that another application is writing information to the clipboard when WinBatch attempts to execute the ClipGet function.
If this is the case, revise your code as follows to check for the 1034 error, and cycle through again if the error occurs:
Try...
:clipboard errormode(@OFF) Clip=Clipget() errormode(@CANCEL) err=lasterror() if err==1034 timedelay(2) goto clipboard endif message("Contents of Clipboard",Clip)
Article ID: W12936
Filename: 1034 Clipboard Owned by Another Application.txt
File Created: 1999:04:15:16:50:38
Last Updated: 1999:04:15:16:50:38