简体   繁体   English

Amazon Virtual Desktop:python脚本无法获取剪贴板:访问被拒绝

[英]Amazon Virtual Desktop: python script unable to fetch Clipboard : Access denied

Amazon Virtual Desktop, 亚马逊虚拟桌面

Python Script doing good stuff But unable to access data from clipboard Python脚本表现不错,但无法从剪贴板访问数据

We have no access for C Drive and available D drive for users data 我们无权使用C盘,也没有D盘用于用户数据

Trying the following snippet :- 尝试以下代码段:

import win32clipboard

# get clipboard data
win32clipboard.OpenClipboard()
data = win32clipboard.GetClipboardData()
win32clipboard.CloseClipboard()
print data

Gives me following error :- 给我以下错误:

win32clipboard.OpenClipboard() pywintypes.error: (5, 'OpenClipboard', 'Access is denied.')

Any work around or solution for it ?? 任何解决方法或解决方案?

Have a look at : https://wiki.python.org/moin/TkInter 看看: https : //wiki.python.org/moin/TkInter

from Tkinter import Tk
tkint = Tk()
copied_val = tkint.clipboard_get()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 访问被拒绝的 Python 脚本 Pstuil - Access Denied Python Script Pstuil 具有“拒绝访问”错误的Python S3 Amazon代码 - Python S3 Amazon Code with 'Access Denied' Error Amazon SP-API Python SellingApiForbiddenException:访问请求的资源被拒绝 - Amazon SP-API Python SellingApiForbiddenException: Access to requested resource is denied 在 Python 的虚拟环境中执行 pip -V 时访问被拒绝 - Access is denied while executing pip -V in virtual environment in Python python 虚拟环境上的 AWS S3 访问被拒绝 - AWS S3 Access Denied on python virtual environment 无法获取部署在 Flask 上的 Python 脚本的输入 - Unable to fetch inputs for Python script deployed on Flask 无法在PHP中获取Python脚本的结果 - Unable to fetch result of Python Script in PHP 错误:无法移动缓存:使用 selenium 时访问被拒绝(python) - Error: Unable to move the cache: Access is denied, when using selenium (python) SQL 服务器 ML。 外部 Python 脚本:访问被拒绝错误 - SQL Server ML. External Python Script: Access Denied Error 需要使用 python 脚本访问 iis 虚拟目录 - Need to access iis virtual directory using python script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM