Search code examples
autohotkey

Unable to send Ctrl+V in PureRef


Unable to Send Ctrl+V to PureRef.

Here's the script->

F1::
WinActivate, ahk_class Qt5QWindowIcon ;;            Activates PureRef
Send, ^v             ;;; didn't worked
SendInput, ^v        ;;; didn't worked..
return    

Is there something Wrong?

Any help would be appreciated!


Solution

  • ;Try this,
    
    F1::
    IfWinExist, PureRef ; Checks If PureRef is running..
    {
        WinActivate, ahk_class Qt5QWindowIcon ; Activates PureRef
        Sleep 100
        Send,{Ctrl down}
        Sleep 60
        Send,{v down}
        Sleep 60
        Send,{v up}
        Sleep 60
        Send,{Ctrl up}
        ;MsgBox done
    }
    return