在ie10中把alt+q 键映射为 复制键ctrl+c 不成功,不知什么原因?请求高手指点,谢谢
Posted: 10 Oct 2016, 03:46
Code: Select all
!q::^c
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=27&t=23918
Code: Select all
$!q::
clipboard=
send ^c
ClipWait, 2
clpc :=SubStr(clipboard,1,30)
ToolTip, Copy %clpc%
sleep,1000
ToolTip
return
Code: Select all
KeyWait Alt
Send ^c
Code: Select all
SendCtrlC() {
; 如果没开启大写则开启
if !state := GetKeyState("Capslock", "T") {
SetCapsLockState, On
}
Send ^c
; 如果复制前是小写,则恢复小写
if !state {
SetCapsLockState, Off
}
}
Code: Select all
#IfWinActive, ahk_class IEFrame
!q::
KeyWait Alt
Send ^c
return
#IfWinActive