Can't open clipboard for reading error when workstation is locked

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Can't open clipboard for reading error when workstation is locked

Can't open clipboard for reading error when workstation is locked

Post by downloaderfan » 02 Feb 2018, 17:15

Hi, I'm trying to run a script which involves getting current clipboard data & storing it in a variable. It seems whenever I try to run this script with the workstation locked, I get this error - https://i.imgur.com/PRQTvfW.png . This doesn't happen 100% of the time, it's very sporadic. Can anyone else confirm whether they get the same error when trying to read the clipboard with workstation locked?

Relevant code:

Code: [Select all]GeSHi © Codebox Plus

mytempclip:=clipboardAll
Runwait %comspec% /c netsh wlan show interface > "C:\Scripts\a.txt" | clip,,hide
Runwait %comspec% /c netsh wlan show networks mode=Bssid > "C:\Scripts\b.txt" | clip,,hide
Runwait %comspec% /c wmic cpu get name > "C:\Scripts\c.txt" | clip,,hide
clipboard:=mytempclip


AutoHotkey Version 1.1.27.02
Windows 10 Home v1709 OS Build 16299.64

Top