Jira 如何编写使用热键粘贴段落的AutoIT脚本

Jira 如何编写使用热键粘贴段落的AutoIT脚本,jira,autoit,Jira,Autoit,我需要一些关于如何编写AutoIt脚本的帮助,每当我按下JIRA中的某个热键时,该脚本可用于粘贴特定段落。有人能帮我吗 这就是我迄今为止所做的: Func DoNotReply() ClipPut("Please do not reply to this email") EndFunc HotKeySet("!{q}", "DoNotReply") While 1 Sleep(10) WEnd -谢谢 好的 我认为这会奏效: Func ClosedTicketReply()

我需要一些关于如何编写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

但我还没有弄清楚如何格式化。因此,任何关于这方面的提示都将不胜感激。

正确的
热键集
语法“普通”键(字母)不使用
{}
。此外,您可能希望直接发送字符串,而不是覆盖剪贴板(其中可能包含您希望保留在那里的内容)。使用
Send
命令:

HotKeySet("!q", "DoNotReply")

While 1
  Sleep(10)
WEnd  

Func DoNotReply()
   Send("Please do not reply to this email")
EndFunc
热键集(“!q”,“DoNotReply”)
{}
语法是为“特殊键”保留的,如
{ESC}
{PAUSE}
等。简单的字母不需要它们。