gpt4 book ai didi

AutoHotKey - 全选 > 复制 > 插入 AHK 脚本 > 将复制的测试粘贴到 AHK 脚本区域

转载 作者:行者123 更新时间:2023-12-02 00:14:43 26 4
gpt4 key购买 nike

我希望使用带有 AutoHotKey 的命令“rwn”来选择所有内容并从文本框中复制现有文本 - 插入预定义脚本 - 然后将复制的文本中途插入到预定义脚本中。

这就是我目前所拥有的 - 我尝试了几种不同的变体,但似乎都不起作用。

::rwn::
{
Send ^a
Sleep 30
Send ^c
}
1 - Validated Customer Details:`n Building: `n Level & room: `n Contact Office: x`n Contact Mobile: 04`n`n2 - Original request information:`n
{
Send ^v
}
`n`n3 - New Restoration OR Existing Problem:`n `n`n4 - Work Details:`n `n`n5 - Remote Access:`n Attempted (SCCM) Successful (SCCM) Not Available`n`n6 - Can be Resolved

directly by me?`n YES NO`n`n7 - Capture User Interaction`n `n`n8 - Customer's understanding of resolution:`n `n`n9 - KM Record potential:`n Yes No`n
return

最佳答案

鲁贝托,

我在记事本中对此进行了测试,因此我更改了回车/换行以在记事本中正常工作。我没有逐个字符地发送文本,这很慢,而是将所有内容都存储在变量中,如果需要,您也可以将它们直接存储在剪贴板中。试一试,然后告诉我结果。在个人层面上,KM 流程使用这种方法的效果如何?

:*:rwn:: ; Added * so you don't have to press Enter after rwn
Send ^a ; Select All
Sleep 30 ; Wait 30 ms.
Send ^c ; Copy incident text to clipBoard
ClipWait ; Wait for clipboard to fill
; Define 3 variables with text, pasting text from the clipboard is much faster than sending text. Since I tested it in Notpad, I had to use `r`n Carriage Return, New Line
Text1 = 1 - Validated Customer Details:`r`n Building: `r`n Level & room: `r`n Contact Office: x`r`n Contact Mobile: 04`r`n`r`n2 - Original request information:`r`n`r`n
Text2 = %ClipBoard%
Text3 = `r`n`r`n3 - New Restoration OR Existing Problem:`r`n`r`n`r`n4 - Work Details:`r`n`r`n`r`n5 - Remote Access:`r`n`r`n`r`nAttempted (SCCM) Successful (SCCM) Not Available`r`n`r`n6 - Can be Resolved directly by me?`r`n YES NO`r`n`r`n7 - Capture User Interaction`r`n `r`n`r`n8 - Customer's understanding of resolution:`r`n `r`n`r`n9 - KM Record potential:`r`n Yes No`r`n
ClipBoard = %Text1% ; Store fixed text 1 in clipboard
Send, ^v ; Paste clipboard content
ClipBoard = %Text2% ; Store incident text 2 in clipboard
Send, ^v ; Paste clipboard content
ClipBoard = %Text3% ; Store fixed text 1 in clipboard
Send, ^v ; Paste clipboard content
return

哦,顺便说一句。我用 AutoHotKey_L 对此进行了测试,但它也应该适用于常规的 AutoHotKey。

关于AutoHotKey - 全选 > 复制 > 插入 AHK 脚本 > 将复制的测试粘贴到 AHK 脚本区域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13792860/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com