1034 Error: Clipboard Owned by another Application
Keywords: clipget 1034 error clipboard
Question:
In the following code:clip=clipget()I'm getting the following error:1034: clipboard owned by another applicationWhy is this happening?Answer:
Sometimes you can get this error message if you have a ClipPut statement just previous to a ClipGet statement, and the system hasn't has time to perform both the put and get functions.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: W12936Filename: 1034 Clipboard Owned by Another Application.txt