ahkcompiler
ahkcompiler copied to clipboard
AHK積木執行JavaScript,剪貼簿會有延遲問題
建議修正函式為:
Javascript(JS){
WinGetActiveStats, Title, W, H, X, Y
BlockInput, On
FullScn := FALSE
if (Y = 0) {
FullScn := TRUE
Send, {F11}
Sleep 500
}
Send, ^l
clipboard_save := clipboard
clipboard:=
clipboard:="_Javascript:" . JS . ";void(0);"
ClipWait
Sleep 300
Send ^v
Sleep 100
Send, {Home}
Send, {Delete}
Send, {Enter}
clipboard = %clipboard_save%
if FullScn {
Send, {F11}
}
BlockInput, Off
}
Ref: Youtube網友 沈宗叡