我想做一个超级粘贴,并在 AHK 中写了这个。我的代码错了吗?我在两个脚本上都遇到了错误
脚本 1
^!c::
Send Send {Ctrl Down}c{Ctrl Up}
Sleep, 100
Send !Tab
Sleep, 100
Send Send {Ctrl Down}v{Ctrl Up}
Sleep, 100
Send Enter
Sleep, 10
Send Enter
Sleep, 100
Send !Tab
Return
脚本 2
^+c::
Send ^c
Sleep, 100
Send !Tab
Sleep, 100
Send ^v
答案1
脚本 1
;SetKeyDelay, 300 ;Sets the delay(Time in milliseconds) that will occur after each keystroke sent by Send and ControlSend. uncomment if something wrong
^+c:: ; ctrl+shift+c
clipboard = ; Empty the clipboard
Send ^c
ClipWait 3 ; Waits 3 sec until the clipboard contains data.
Send !{Tab} ; Switch between the two most recent tasks (is it notepad?)
Sleep, 200
Send {End} ; move to end line
Send {Enter} ; new line
Send {Enter} ; new line separator
Send ^v
Sleep, 200
Send !{Tab} ; Switch between the two most recent tasks (moving back)
ctrl+shift+c 激活。