Skip to content

Commit

Permalink
update to ALT nullification
Browse files Browse the repository at this point in the history
super gr8888
  • Loading branch information
TaranVH committed Oct 16, 2018
1 parent 334bcc9 commit 0c7223c
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 72 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ FYI/~$Table_of_all_scan_codes.xlsx
FYI/~$Table_of_all_scan_codes.xlsx
FYI/~$Table_of_all_scan_codes.xlsx
FYI/scancode.doc
FYI/~$Table_of_all_scan_codes.xlsx
FYI/~$Table_of_all_scan_codes.xlsx
Taran's_Windows_Mods/SavedExplorerAddress.txt
82 changes: 45 additions & 37 deletions ALL_MULTIPLE_KEYBOARD_ASSIGNMENTS.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ detecthiddenwindows, on

SetNumLockState, AlwaysOn ;i think this only works if launched as admin.


;Avoid using stupid CTRL when alt is released https://autohotkey.com/boards/viewtopic.php?f=76&t=57683
#MenuMaskKey vk07 ; vk07 is unassigned.

;____________________________________________________________________________
;
Expand Down Expand Up @@ -204,7 +205,9 @@ F9::insertSFX("SimpleWhoosh3")
F8::insertSFX("SimpleWhoosh8")
F10::insertSFX("woosh2")
F11::insertSFX("woosh1")
F12::search() ;"search" is also used on ^+j
F12::InstantExplorer("Z:\Linus\5. Fast As Possible\000 Transcoding\Delivery")

;F12::search() ;"search" is also used on ^+j
; F12 must not used here IF it is the keyboard's launching key. You MAY put it here if you used F13 to F24 as the launching key

;;;;;next line;;;;;;;;
Expand All @@ -226,8 +229,9 @@ F12::search() ;"search" is also used on ^+j
backspace::instantExplorer("Z:\Linus\Team_Documents\TARAN THINGS\cutting_room_floor")

;;;;;next line;;;;;;;;
;;;;;K120 keyb;;;;;;;;

tab::msgbox,,, you pressed tab. :P,0.8
tab::msgbox,,,K120 - you pressed tab. :P,0.8

;This was the old code, before I realized I can just use A_thishotkey and assign all of them at once!!
; q::recallClipboard("q")
Expand Down Expand Up @@ -321,23 +325,26 @@ m::preset("a0p0 pan down")
;;;;;next area;;;;;;;;
;;;;K120 keyboard;;;;;

;;Lctrl::msgbox LEFT ctrl ;this must be commented out for the sake of numpad5, which was converted into left ctrl.
;None of these modifiers should even happen, I have allowed modifiers to pass through normally.

;;Lctrl::msgbox,,, LEFT ctrl,0.5 ;this must be commented out for the sake of numpad5, which was converted into left ctrl.

;None of these modifiers should ever be triggered. I have blocked them and replaced with something else. What is below is just here for diagnostic purposes.
Lwin::msgbox,,, LEFT win,0.5
Lalt::msgbox,,, LEFT alt,0.5
Rshift::msgbox,,, RIGHT shift,0.5

;Ralt::msgbox Ralt - doesnt work
;Rwin::msgbox Right Win - doesnt work
Rshift::instantExplorer("Z:\Linus\1. Linus Tech Tips\Assets\Music")
;SC061::instantExplorer("Z:\Linus\1. Linus Tech Tips\Assets\Music")
;msgbox RIGHT SHIFT lol

;SC06E::msgbox,,,this was right WINkey,0.5 ;;NEVER use super modifier keys in this way! bad idea!!! cross talk!!!!!
SC06F::msgbox,,,testing scan codes,0.5
SC062::InstantExplorer("Z:\Linus\10. Ad Assets & Integrations\~CANNED PRE ROLLS") ;remapped away from appskey, it seemed to cause problems.

; Rctrl::preset("50% stereo")
SC078::preset("50% stereo") ;this was a remapped rightctrl
capslock::msgbox,,, K120 capslock,0.5

;;SC062 was once the remap of appskey, but it seemed to cause problems.

SC072::msgbox,,, K120 - SC072 - "Lang 1", 0.5 ;Lwin to SC072 - Lang1
SC073::msgbox,,, K120 - SC073 - "International1", 0.5 ;LAlt to SC073 - International1

SC078::preset("50% stereo") ;rightCtrl (Rctrl) to sc078 - Lang3
SC077::instantExplorer("Z:\Linus\1. Linus Tech Tips\Assets\Music") ;rightShift to SC077 - Lang4

space::InstantExplorer("Z:\Linus\10. Ad Assets & Integrations")
;SC065::runexplorer("Z:\Linus\10. Ad Assets & Integrations\~ For Review") ;this is remapped from ALT. JK, SC065 is F14, do not use.
appskey::msgbox, this is the right click appskey KEY I guess
Expand Down Expand Up @@ -639,7 +646,7 @@ backspace::return
;;;;;next line;;;;;;;;
;;;this is the fake F20 capslock layer;;;

tab::msgbox,,, you pressed tab. :P,0.8
tab::msgbox,,,within F20 - you pressed tab. :P,0.8

q::
w::
Expand Down Expand Up @@ -686,10 +693,7 @@ space::tooltip,
Ralt::msgbox, Ralt - doesnt work
Rwin::msgbox, Right Win
Rshift::msgbox RIGHT SHIFT lol
; SC06E::msgbox,,,right WINkey,0.5
;;terrible idea to use F23 for that. Must never use super function keys for modifier key remapping. (super = F23 and up)
SC06F::msgbox,,,SC06F,0.5
SC062::msgbox,,,SC062,0.5

Rctrl::msgbox,,,Rctrlll,0.5
appskey::msgbox, this is the appskey KEY I guess

Expand Down Expand Up @@ -915,11 +919,7 @@ Ralt::msgbox, Ralt - doesnt work
Rwin::msgbox, Right Win
Rshift::msgbox RIGHT SHIFT lol

SC06F::msgbox,,,SC06F,0.5
;SC062::msgbox,,,SC062 aka APPSKEY,0.5 ;for some reason, might open last active window...

; DELETE THE LINE BELOW, LATER
; SC063::msgbox,,,SC063 was previously LWIN,0.5. it is not SC072
;Lwin to SC072 - Lang1
SC072::
;msgbox,,,sc072,0.5
;msgbox,,, trying to open VNC,0.5
Expand All @@ -929,14 +929,18 @@ if WinExist("ahk_exe tvnviewer.exe")
WinActivate ahk_exe tvnviewer.exe
return

appskey::msgbox, this is the appskey KEY maybe. U should never see this message.
appskey::msgbox, "this is the appskey KEY maybe. You should never see this message."

;SC05A::msgbox,,, was remapped from ALT. now SC05A,0.5 ;NO LONGER TRUE, DELETE THIS LINE LATER
;Ralt was remapped to SC07B, AKA NONCONVERT‡, AKA Corsair's International5.
SC07B::
tippy("pin to clip")
prFocus("effect controls")
send, ^!p ;my premiere shortcut for pin to clip is ctrl alt P
sleep 20
return

SC07B::send, ^!p ;Ralt was remapped to SC07B, AKA NONCONVERT‡, AKA Corsair's International5. ;then, my premiere shortcut for pin to clip is ctrl alt P
;Rctrl::tooltip, rctrl

;rightcontrol > SC078 / Lang3 > OBS
;RCtrl to sc078 - Lang3 -->> OBS
SC078::
tooltip, rightcontrol > SC078 / Lang3 > OBS
IfWinNotExist, ahk_class Qt5QWindowIcon ;this is broken, plz fix
Expand Down Expand Up @@ -1056,11 +1060,13 @@ numpadDot::tooltip, you pressed %A_thishotkey%
;addendum: if #IfWinActive ahk_exe explorer.exe is BEFORE the 2nd keybaord code, it executes all by itself. So yeah, the secondary keybaords must be before all else.


; ____________________________________________________________________
;| |
;| PRIMARY KEYBOARD, (Corsair K95 RGB) AHK KEY ASSIGNMENTS |
;|____________________________________________________________________|

; __________________________________________________________
;| |
;| PRIMARY KEYBOARD, (Corsair K95 RGB) AHK KEY ASSIGNMENTS |
;|__________________________________________________________|
;(\__/)||
;(•ㅅ•) ||
;/   \づ||

;;;~~~~~~FUNCTION KEYS IN VARIOUS PROGRAMS~~~~

Expand Down Expand Up @@ -1380,6 +1386,8 @@ sleep 80
sendinput, ^c
sleep 15
WinActivate ahk_class Premiere Pro
sleep 20
prFocus("timeline")
sleep 10
send, ^!d ;ctrl alt D is "deselect all" (clips on the timeline)
sleep 20
Expand Down Expand Up @@ -1641,8 +1649,8 @@ SC06F::tooltip, SC06F - cannot find trigger
VKE9::msgbox,,, VKE9 ??? - "Keyboard Lang 2", 0.5 ;does not work from Corsair keyboard
;VKE9SC071::msgbox,,, VKE9 SC071 ??? - Keyboard Lang 2, 0.5 ;;this will not register as an allowed hotkey
SC071::msgbox,,, SC071 - "Keyboard Lang 2", 0.5 ;does not work from Corsair keyboard
SC072::msgbox,,, SC072 - "Keyboard Lang 1", 0.5 ;also does not work from Corsair keyboard
SC073::msgbox,,, SC073 - "Keyboard Intl' 1", 0.5 ; "Keyboard Intl' 1"
SC072::msgbox,,, SC072 - "Keyboard Lang 1", 0.5 ;Lwin to SC072 - Lang1
SC073::msgbox,,, SC073 - "Keyboard Intl' 1", 0.5 ;LAlt to SC073 - International1

SC074::msgbox,,, SC074 - cannot find trigger, 0.5
SC075::msgbox,,, SC075 - cannot find trigger - this is just before SC076 which is F24, 0.5
Expand Down
10 changes: 5 additions & 5 deletions Intercept/keyremap.ini
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ device=HID\VID_046D&PID_C31C&REV_6400&MI_00
trigger=2b,0,0
combo=6E,0,0|2b,0,0|2b,0,1|6E,0,1

[caps lock]
[caps lock to wrapped capslock]
device=HID\VID_046D&PID_C31C&REV_6400&MI_00
trigger=3a,0,0
combo=6E,0,0|3a,0,0|3a,0,1|6E,0,1
Expand Down Expand Up @@ -310,7 +310,7 @@ combo=6E,0,0|35,0,0|35,0,1|6E,0,1
device=HID\VID_046D&PID_C31C&REV_6400&MI_00
trigger=5b,0,2
combo=6E,0,0|72,0,0|72,0,1|6E,0,1
;SC072 is Corsair's Lang1


[leftAlt to SC073 - International1]
device=HID\VID_046D&PID_C31C&REV_6400&MI_00
Expand Down Expand Up @@ -352,10 +352,10 @@ trigger=5d,0,3
combo=
;I forget why this is important exactly...

[rightCtrl to sc073 - Lang3]
[rightCtrl to sc078 - Lang3]
device=HID\VID_046D&PID_C31C&REV_6400&MI_00
trigger=1d,0,2
combo=6E,0,0|78,0,2|78,0,3|6E,0,1
combo=6E,0,0|78,0,0|78,0,1|6E,0,1
;SC078 is Lang3, according to Corsair

[rightShift to SC077 - Lang4]
Expand Down Expand Up @@ -1221,7 +1221,7 @@ device=HID\VID_0C45&PID_7605&REV_0105&MI_00
trigger=5b,0,2
combo=76,0,0|72,0,0|72,0,1|76,0,1
;this was previously remapped to SC063
;sc072 is Lang1


[leftAlt azio to SC073 - International4]
device=HID\VID_0C45&PID_7605&REV_0105&MI_00
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Menu, Tray, Icon, imageres.dll, 90

;VIDEO EXPLANATION: https://youtu.be/O6ERELse_QY?t=23m40s

;NOTE THAT YOU MUST REMAP \ (backslash) TO "Move playhead to cursor" in Premiere's keyboard shortcuts panel!

;NOTE: I use the right mouse button for this because my current mouse does not have macro keys on it. I could use the middle mouse button, but it requires too much pressure to push down, and you have to be careful not to scroll it.
;But if you want to use a button other than the right mouse button, the script becomes a lot simpler. Scroll down to the bottom for that script.
Expand Down Expand Up @@ -57,7 +58,7 @@ if (colorr = timeline1 || colorr = timeline2 || colorr = timeline3 || colorr = t
;tooltip,
loop
{
Send \ ;in premiere, this is set to "move playhead to cursor."
Send \ ;in premiere, this must be set to "move playhead to cursor."
Tooltip, Right click playhead mod!
sleep 16 ;this loop will repeat every 16 milliseconds.
; if GetKeyState("$Rbutton") = U ; again, this does not work at all.
Expand All @@ -84,7 +85,7 @@ Return
;In the following script, You can change "Mbutton" to anything else. like "Xbutton1", or even "F12" if you wanted.
;So, assuming you've mapped "move playhead to cursor" to the \ key, the problem is that it fires once, waits 1 second, and only then does it continue to fire.
;that's why I use a loop - to send constant keypresses, for a smooth experience.
;SCRIPT HAS NOT YET BEEN TETED BY ME.
;SCRIPT HAS NOT YET BEEN TESTED BY ME.


; Mbutton::
Expand All @@ -95,17 +96,18 @@ Return
; ;tooltip,
; loop
; {
; Send \ ;in premiere, this is set to "move playhead to cursor."
; Send \ ;in premiere, this must be set to "move playhead to cursor."
; Tooltip, Middle click playhead mod!
; sleep 16 ;this loop will repeat every 16 milliseconds.
; ; if GetKeyState("$Rbutton") = U ; again, this does not work at all.
; if GetKeyState("Mbutton", "P") = 0
; {
; ;msgbox,,,time to break,1
; tooltip,
; goto theEnd
; goto theEnd2
; break
; }
; }
; }
; theEnd2:
; Return

25 changes: 13 additions & 12 deletions Taran's_Windows_Mods/Alt_menu_acceleration_DISABLER.ahk
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@

Menu, Tray, Icon, shell32.dll, 110 ; changes the icon to a (\) thingy

SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#InstallKeybdHook
#NoEnv
;#NoTrayIcon ;comment this in if you do not want a tray icon.
#SingleInstance
#MaxHotkeysPerInterval 2000
Process, Priority, , H
SendMode Input
#SingleInstance force
CoordMode, mouse, screen

;These next two lines are EXTREMELY IMPORTANT. You have to change the "menu mask key" away from being CTRL, to something that won't result in cross-talk. Read this thread to learn the details: https://autohotkey.com/boards/viewtopic.php?f=76&t=57683
#MenuMaskKey vk07 ; vk07 is unassigned.
#UseHook

; INFO: you can hold down both ALT keys if you want to easily toggle this script on and off.


; THEY ALL SAID IT COULD NOT BE DONE
Expand Down Expand Up @@ -54,28 +59,20 @@ CoordMode, mouse, screen
; THE SOLUTION:

~LAlt::
;sendinput, {LAlt down} ;now that I added the ~, this line is no longer necessary.
sendinput, {SC0E9 down} ;this is the scan code of an unassigned key. As long as you nor the system never use it for anything else, it can be used in THIS way to cancel the menu acceleration.
;tooltip, Lalt is pressed
KeyWait, LAlt
; That line is (was) important, so that ALT does not continuously fire as you are holding it down.
; update, i am no longer sure if it is important or not...
;tooltip, Lalt was released
return

~LAlt up::
;sendinput, {LAlt up}
sendinput, {SC0E9 up}
;;;Unlike my 2nd keyboard, this method does not use the scan code as a strict "wrapper."
;;tooltip,
return


~RAlt::
;sendinput, {RAlt down}
sendinput, {SC0E9 down}
;;tooltip, Ralt is pressed
;KeyWait, RAlt
KeyWait, RAlt
;;tooltip, Ralt was released
return

Expand All @@ -85,6 +82,10 @@ sendinput, {SC0E9 up}
;;tooltip,
return


Lalt & Ralt::suspend ;hit both ALT keys simultaneously to toggle the functonality of this script. The tray icon will also change visually, so you will always know.


;;comment in the code below if you wish to reassign alt modifier combinations:

; !f::msgbox,,,To block modifier key use of alt you can do it like this,0.7
Expand Down
2 changes: 1 addition & 1 deletion Taran's_Windows_Mods/SavedExplorerAddress.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Z:\Linus\1. Linus Tech Tips\Pending\HyperX gaming SD card
Z:\Linus\1. Linus Tech Tips\Pending\Sony HT-Z9F Sound Bar Showcase
Loading

0 comments on commit 0c7223c

Please sign in to comment.