如何编写使用热键粘贴段落的 AutoIT 脚本
How to write a AutoIT script that pastes a paragraph using a hotkey
我需要一些关于如何编写 AutoIt 脚本的帮助,当我在 JIRA 中按下某个热键时,该脚本可用于粘贴特定段落。谁能帮帮我?
这是我目前所拥有的:
Func DoNotReply()
ClipPut("Please do not reply to this email")
EndFunc
HotKeySet("!{q}", "DoNotReply")
While 1
Sleep(10)
WEnd
-谢谢!
好的,
我认为这会起作用:
Func ClosedTicketReply()
ClipPut("PLEASE DO NOT REPLY to this email.")
Send("^v")
EndFunc
HotKeySet("!{q}","ClosedTicketReply")
While 1
Sleep(10)
WEnd
不过我还不知道如何格式化。因此,我们将不胜感激。
"normal" 键(字母)的正确 HotKeySet
语法不使用 {}
。此外,您可能希望直接发送字符串而不是覆盖剪贴板(其中可能包含您想保留在那里的内容)。使用Send
命令:
HotKeySet("!q", "DoNotReply")
While 1
Sleep(10)
WEnd
Func DoNotReply()
Send("Please do not reply to this email")
EndFunc
我需要一些关于如何编写 AutoIt 脚本的帮助,当我在 JIRA 中按下某个热键时,该脚本可用于粘贴特定段落。谁能帮帮我?
这是我目前所拥有的:
Func DoNotReply()
ClipPut("Please do not reply to this email")
EndFunc
HotKeySet("!{q}", "DoNotReply")
While 1
Sleep(10)
WEnd
-谢谢!
好的,
我认为这会起作用:
Func ClosedTicketReply()
ClipPut("PLEASE DO NOT REPLY to this email.")
Send("^v")
EndFunc
HotKeySet("!{q}","ClosedTicketReply")
While 1
Sleep(10)
WEnd
不过我还不知道如何格式化。因此,我们将不胜感激。
"normal" 键(字母)的正确 HotKeySet
语法不使用 {}
。此外,您可能希望直接发送字符串而不是覆盖剪贴板(其中可能包含您想保留在那里的内容)。使用Send
命令:
HotKeySet("!q", "DoNotReply")
While 1
Sleep(10)
WEnd
Func DoNotReply()
Send("Please do not reply to this email")
EndFunc