python - Linux xdotool 符号

标签 python linux ubuntu xdotool

我正在寻找使用 xdotool 模拟键盘,但我遇到了部分 URL 问题。我要输入的部分是“-episode-”。

作为解决方案,我有一个文本文件 (hyphen.txt),其中包含:

-

然后我运行:

xdotool key --file ./hyphen.txt

我想避免使用额外的文本文件。有没有办法使用:

xdotool key <>
xdotool type <>

输出一个连字符?

最佳答案

这对我有用:

xdotool key minus

关于python - Linux xdotool 符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27697832/

相关文章:

linux - ubuntu "No space left on device"但是有很多空间

Python - 将数据从文件流式传输到启用异步的 Kinesis Producer

python - 如何实现双向 jsonrpc + 扭曲的服务器/客户端

linux - Chrome 操作系统上的 HIDS 代理

在 DDS 中为多个主题创建多个数据写入器

java - Java 项目中的 Selenium Chromedriver 超时问题

ubuntu - 用于 ubuntu 的新软件的 deb 包

linux - 如何使用 meld 比较不同目录中的两个同名文件(不给出路径)?

python - 如何将for循环中的结果写入多个CSV文件

python - 如何将 python crypt 对象转换为 csv,以便我可以对内容调用 csv 方法