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

Report problems with documented functionality
downloaderfan
Posts: 34
Joined: 09 Jun 2017, 09:19

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

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

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

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 18 guests