有没有简单的方法来模拟长文本的键盘输入?
我想将一封长的纯文本电子邮件复制粘贴到 Google 文档中。电子邮件以空格缩进,有点像这样:
Layer1
Layer2
Layer3
当您将其粘贴到 Google 文档中时,它看起来像这样
{tab} Layer1
{tab} Layer2
{tab} Layer3
我能想到解决此问题的唯一方法是键入整个手动发送电子邮件,从那时起,Google 文档就会将我的空格视为空格(而不是用看起来像选项卡的东西替换它们)。
但是,如果我可以将纯文本提供给打字机程序,将光标放入我的 Google 文档页面并点击“Go”,那就可以解决我的问题。
有谁知道任何这样的程序,或者任何其他方法来解决这个问题?
I would like to copy paste a long plain text email into Google Documents. The email is indented with spaces, somewhat like this:
Layer1
Layer2
Layer3
When you paste this into Google Documents, it appears something like this
{tab} Layer1
{tab} Layer2
{tab} Layer3
The only way I can think of solving this problem is typing the whole email by hand, since then Google docs would respect my spaces as spaces (and not replace them with something that looks like a tab).
However, if I could give my plain text to a typewriter program, put the cursor inside my Google docs page and hit "Go", that would solve my problem.
Does anyone know of any such program, or of any other way to solve this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 AutoHotKey 脚本:
You could use an AutoHotKey script:
谢谢bdares。
我下载了该程序的最新 UTF-8 版本,并将默认脚本替换为
括号对于多行文本是必需的。
重新加载脚本,将光标放入文本字段(记事本或 Google Docs、Notepad++ 无法正确处理换行符)并点击“Win-Z”(#z 表示 Win-Z)。
重要提示:如果您使用此脚本输入长文本,请确保不要更改活动窗口,否则您的脚本将被中断。 (在 Windows XP 和 Firefox 4 的 Google 文档中进行测试)
Thanks bdares.
I downloaded the newest, UTF-8 Version of the program and replaced the default script with
The parentheses are necessary for multi-line text.
Reload the script, put the cursor into the text field (notepad or Google Docs, Notepad++ doesn't handle the line feeds correctly) and hit "Win-Z" (#z means Win-Z).
Important: If you are typing a long text with this script, be sure not to change the active window or your script will be interrupted. (Tested on Windows XP with Firefox 4 in Google Docs)