Skip to content

AHK積木執行JavaScript,剪貼簿會有延遲問題 #15

@papple23g

Description

@papple23g

建議修正函式為:

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網友 沈宗叡

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions