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

Error Codes

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

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 application
Why 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:   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