Cannot open clipboard: Access Denied

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
dafe
Junior Coder
Posts: 23
Joined: Sun Apr 06, 2008 4:21 am

Cannot open clipboard: Access Denied

Post by dafe » Wed Apr 01, 2009 7:51 am

Howdy all,

I'm currently receiving the error - Cannot open clipboard: Access denied in one of my scripts which uses the clipboard twice (both copying to, and extracting to a variable) inside an endless loop.

A check of the log clearly shows this happening on my first getclipboard> command in the loop, although it will happily loop anywhere from a few times, to several hundred times before it happens.

I've found an older post hailing back to ver. 9 of MS, however I am up to date using 11.1.07

Has anyone else experienced this error or is able to give any advice?


Cheers!
--

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Apr 01, 2009 8:32 am

Since you are accessing the clipboard in quick succession you may be trying to access it too quickly. Are you using WaitClipBoard to make sure the clipboard is ready before each GetClipBoard?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

dafe
Junior Coder
Posts: 23
Joined: Sun Apr 06, 2008 4:21 am

Post by dafe » Wed Apr 01, 2009 9:16 am

admittedly no.. in fact, somehow i managed to competely pass over that command :oops:

at least it was a simple fix! :D
--

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts