1
TapTap / Re: CTRL-C shortcut not recognized in Win7-Explorer
« on: September 07, 2016, 05:14 AM »
@IanB: Ooooh. That's a nice and clean solution. Alas, I'd really like a Double-Tap-thing like it was in TapTap ('cos RCtrl+m and even worse RCtrl+n are still quite awkward key-combos to use), so I tried to do it with RapidHotKey. Which kinda works although it's quite an ugly script...
Thank a TON for your support so far.
Code: Autohotkey [Select]
- ; thanks to https://autohotkey.com/board/topic/35566-rapidhotkey/
- ~RShift::RapidHotkey("^c", 2, 0.1) ;COPY
- ~RControl::RapidHotkey("^v", 2, 0.1) ;PASTE
- {
- Pattern := Morse(delay*1000)
- Return
- {
- }
- {
- }
- {
- }
- Else if (times = "")
- If !continue
- Return
- keystr := A_LoopField
- backspace := "{BS " times "}"
- If ((!IsLabel or (IsLabel and IsLabel(keystr))) and InStr(A_ThisHotkey, "~") and !RegExMatch(A_ThisHotkey
- , "i)\^[^\!\d]|![^\d]|#|Control|Ctrl|LCtrl|RCtrl|Shift|RShift|LShift|RWin|LWin|Alt|LAlt|RAlt|Escape|BackSpace|F\d\d?|"
- . "Insert|Esc|Escape|BS|Delete|Home|End|PgDn|PgUp|Up|Down|Left|Right|ScrollLock|CapsLock|NumLock|AppsKey|"
- . "PrintScreen|CtrlDown|Pause|Break|Help|Sleep|Browser_Back|Browser_Forward|Browser_Refresh|Browser_Stop|"
- . "Browser_Search|Browser_Favorites|Browser_Home|Volume_Mute|Volume_Down|Volume_Up|MButton|RButton|LButton|"
- . "Media_Next|Media_Prev|Media_Stop|Media_Play_Pause|Launch_Mail|Launch_Media|Launch_App1|Launch_App2"))
- Send % backspace
- If !IsLabel
- Send % keystr
- Return
- }
- Morse(timeout = 400) { ;by Laszo -> http://www.autohotkey.com/forum/viewtopic.php?t=16951 (Modified to return: KeyWait %key%, T%tout%)
- tout := timeout/1000
- If Key in Shift,Win,Ctrl,Alt
- key1:="{L" key "}{R" key "}"
- Loop {
- t := A_TickCount
- Pattern .= A_TickCount-t > timeout
- Return Pattern
- If key in Capslock,LButton,RButton,MButton,ScrollLock,CapsLock,NumLock
- else
- Return Pattern
- Return
- }
- }
Thank a TON for your support so far.