无法在 PureRef 中发送 Ctrl+V
Unable to send Ctrl+V in PureRef
无法将 Ctrl+V 发送到 PureRef。
这是脚本->
F1::
WinActivate, ahk_class Qt5QWindowIcon ;; Activates PureRef
Send, ^v ;;; didn't worked
SendInput, ^v ;;; didn't worked..
return
有什么问题吗?
如有任何帮助,我们将不胜感激!
您可以采取一些措施来确保您的脚本正确运行。
你的 PureRef window 真的用 ahk_class Qt5QWindowIcon
激活了吗?
标准变量 %clipboard% 包含剪贴板作为文本。
您也可以尝试 SendInput
、SendRaw
和 SendPlay
将剪贴板作为文本发送。
F1::
ClipWait ; Wait for the clipboard to actually contain something
IfWinExist, ahk_class Qt5QWindowIcon ; Make sure the window exists
{
WinActivate ; Uses the window found by IfWinExist
WinWaitActive ; Wait for the window to be active
IfWinActive ; Make sure that the window is active
{
Send %clipboard% ; Send text-content of clipboard
}
}
return
;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
无法将 Ctrl+V 发送到 PureRef。
这是脚本->
F1::
WinActivate, ahk_class Qt5QWindowIcon ;; Activates PureRef
Send, ^v ;;; didn't worked
SendInput, ^v ;;; didn't worked..
return
有什么问题吗?
如有任何帮助,我们将不胜感激!
您可以采取一些措施来确保您的脚本正确运行。
你的 PureRef window 真的用 ahk_class Qt5QWindowIcon
激活了吗?
标准变量 %clipboard% 包含剪贴板作为文本。
您也可以尝试 SendInput
、SendRaw
和 SendPlay
将剪贴板作为文本发送。
F1::
ClipWait ; Wait for the clipboard to actually contain something
IfWinExist, ahk_class Qt5QWindowIcon ; Make sure the window exists
{
WinActivate ; Uses the window found by IfWinExist
WinWaitActive ; Wait for the window to be active
IfWinActive ; Make sure that the window is active
{
Send %clipboard% ; Send text-content of clipboard
}
}
return
;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