forked from TaranVH/2nd-keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ALL_MULTIPLE_KEYBOARD_ASSIGNMENTS.ahk
2091 lines (1638 loc) · 61.1 KB
/
ALL_MULTIPLE_KEYBOARD_ASSIGNMENTS.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
SetWorkingDir, C:\AHK\2nd-keyboard\support_files
;the above will set A_WorkingDir. It must be done in the autoexecute area.
;SetNumLockState, on ;This doesn't work, needs to be done in admin mode.
;SetScrollLockState, off
Menu, Tray, Icon, shell32.dll, 283 ;tray icon is now a little keyboard, or piece of paper or something
;when you get to #include, it means the END of the autoexecute section.
;gui must be #included first, or it does not work, for some reason...
;YOU probably do NOT need the GUI at all. Delete the line below:
global savedCLASS = "ahk_class Notepad++"
global savedEXE = "notepad++.exe" ;BEFORE the #include is apparently the only place these can go.
#Include C:\AHK\2nd-keyboard\gui.ahk
#include C:\AHK\2nd-keyboard\Almost_All_Premiere_Functions.ahk
#include C:\AHK\2nd-keyboard\Almost_All_Windows_Functions.ahk
#include C:\AHK\2nd-keyboard\After_Effects_Functions.ahk
SetKeyDelay, 0 ;warning ---this was absent for some reason. i just added it back in. IDK if I removed it for a reason or not...
;-------------------------------------------------------------------------
; HELLO PEOPLES
; CHECK OUT MY BIG TUTORIAL FOR SOME EXPLANATION OF HOW THESE
; AHK SCRIPTS WORK, AND HOW THEY COMMUNICATE WITH ONE ANOTHER.
; https://youtu.be/O6ERELse_QY?t=20m7s
;
; IF YOU HAVE NOT USED AHK BEFORE, YOU MUST TAKE THIS TUTORIAL:
; https://autohotkey.com/docs/Tutorial.htm
;
; IMPORTANT NOTE:
; Using #include is pretty much the same as pasting an entire script into
; THIS script. So basically, I'm just importing all the functions that I
; have created in those scripts, so that I can refer to them here.
;
; So, this script has all the keyboard assignments, and the other
; #included scripts have all the functions. I had to split it up this way
; so that I can also directly launch those functions using means OTHER
; than a keyboard, like the Stream Deck's "open file" feature.
;
; ANOTHER NOTE:
; If you have CUE (Corsair Utility Engine) open, and your keyboard selected
; (in all its RGB glory,) it will take a lot longer to switch between applications.
; to fix this lag, simply close CUE, or select some other "demo" peripheral.
;------------------------------------------------------------------------
;
;THIS SCRIPT NO LONGER USES LUAMACROS TO REPROGRAM THE SECOND KEYBOARD. IF YOU WANT THAT CODE, PLEASE GO TO "2nd keyboard if using luamacros.ahk"
;
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; WATCH THESE VIDEOS TO UNDERSTAND YOUR OPTIONS FOR ADDING EXTRA KEYBOARDS:
; https://www.youtube.com/playlist?list=PLH1gH0v9E3ruYrNyRbHhDe6XDfw4sZdZr
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; Lots of other explanatory videos other AHK scripts can be found on my youtube channel! https://www.youtube.com/user/TaranVH/videos
;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Also, I will put shortcuts to all the AHK scripts that I use into my startup folder... which will be here:
; C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
; and\or here:
; C:\Users\[YOUR_USERNAME]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
#NoEnv
SendMode Input
#InstallKeybdHook
#InstallMouseHook
#UseHook On
#SingleInstance force ;only one instance may run at a time!
#MaxHotkeysPerInterval 2000
#WinActivateForce ;https://autohotkey.com/docs/commands/_WinActivateForce.htm ;this may prevent taskbar flashing.
#HotkeyModifierTimeout 60 ; https://autohotkey.com/docs/commands/_HotkeyModifierTimeout.htm
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.
;_________________________________________________________________________________________
;
; NOTE: In autohotkey, the following special characters (usually) represent modifier keys:
; # is the WIN key. (it can mean other things though, as you can see above.)
; ^ is CTRL
; ! is ALT
; + is SHIFT
; list of other keys: http://www.autohotkey.com/docs/Hotkeys.htm
;__________________________________________________________________________________________
;
;----------------------------------------------------------------------------------
; RELEVANT SHORTCUTS I HAVE ASSIGNED IN PREMIERE'S BUILT IN KEYBOARD SHORTCUTS MENU
;----------------------------------------------------------------------------------
; KEYS PREMIERE FUNCTIONS
;----------------------------------------------------------------------------------
; ctrl alt s select clip at playhead. Probably this should be moved to a different series of keystrokes, so that "u" is freed for something else.
; backspace ripple delete --- but I don't use that in AutoHotKey because it's dangerous. This should be changed to something else; I use SHIFT C now.
; shift c ripple delete --- very convenient for left handed use. Premiere's poor track targeting makes ripple delete less useful than it could be.
; ctrl alt shift d ripple delete --- I never type this in manually - long shortcuts like this are great for using AHK or a macro to press them.
; delete delete
; c delete --- I also have this on "C" because it puts it directly under my left hand. Very quick.
; ctrl r speed/duration panel
; shift 1 toggle track targeting for AUDIO LAYER 1
; shift 2 toggle track targeting for AUDIO LAYER 2. And so on up to 8.
; alt 1 toggle track targeting for VIDEO LAYER 1
; alt 2 toggle track targeting for VIDEO LAYER 2. And so on up to 8. I wish there were DEDICATED shortcuts to enable and disable ALL layers
; ctrl p toggle "selection follows playhead"
; ctrl alt shift 3 Application > Window > Timeline (default is shift 3)
; ctrl alt shift 1 Application > Window > Project (This sets the focus onto a BIN.) (default is SHIFT 1)
; ctrl alt shift 4 Application > Window > program monitor (Default is SHIFT 4)
; ctrl alt shift 7 Application > Window > Effects (NOT the Effect Controls panel) (Default is SHIFT 7) --- The defaults are stupid. SHIFT 7 is an ampersand if you happen to be in a text box somewhere...
; F2 gain
; F3 audio channels --- To be pressed manually by the user. (this might change in the future.)
; ctrl alt shift a audio channels --- (I will NOT change this, so that it can always be reliably triggered using AutoHotKey.)
; shift F From source monitor, match frame.
; ctrl / Overwrite (default is "." (period))
; ctrl b select find box --- This is such a useful function when you pair it the the effects panel!!
; ctrl alt F select find box
; ctrl shift 6 Apply source assignment preset 1 (set to V5 and A3)
; ctrl ; (semicolon) Add Marker
;
; Be aware that sometimes other programs like PUUSH can overlap/conflict with your customized shortcuts.
;_______________________________________________________________________________________________
;these are sent from the stream deck.
;I didn't use CTRL and SHIFT and stuff because I wanted NO CROSS TALK!!
;COPY 1 2 and 3
SC062::ClipBoard_1 := GetFromClipboard() ;zoom
vk2A::ClipBoard_2 := GetFromClipboard() ;Printer
SC16B::ClipBoard_3 := GetFromClipboard() ;launch (0)
;PASTE 1 2 and 3
SC16D::SendInput {Raw}%ClipBoard_1% ;launch_media
vk2B::SendInput {Raw}%ClipBoard_2% ;Execute
SC121::SendInput {Raw}%ClipBoard_3% ;launch (1)
;note to self, this is where to go for tap dance stuff
; https://autohotkey.com/board/topic/35566-rapidhotkey/
;____________________________________________________________________
;
; 2ND KEYBOARD USING INTERCEPTOR (Logitech K120)
;____________________________________________________________________
;please watch https://www.youtube.com/watch?v=y3e_ri-vOIo if you need help.
;DANGER: installing interception may cause your USB devices to stop working sometimes, because it is limited to supporting only 10 of each device class. You have to uninstall it to fix that. Here is a follow up video with new information: https://www.youtube.com/watch?v=Hn18vv--sFY
;#if ( \\\\\\\\\\\\\\\getKeyState("F23", "P")) && IfWinActive ahk_exe Adobe Premiere Pro.exe ;have not tested this to see if it works
;#if (getKeyState("F23", "P")) && (uselayer = 0) ;;you can also use a varibable like so.
;;;;;;;;;;;;;BEGIN K120 (2ND KEYBOARD) REMAPPED INTO ALL MACRO KEYS;;;;;;;;;;;;;;;;;
#if (getKeyState("F23", "P")) ;THIS is the line that makes all the lines below possible.
F23::return ;F23 is the dedicated 2nd keyboard "modifier key." You MUST allow it to "return," since it will ALWAYS be fired before any of the keystrokes below, any time you use the 2nd keyboard.
;;also, you must NEVER use F23 for anything else. Doing so will sometimes allow and F23 keystroke to pass through unwrapped, which can cause big problems with cross-talk.
;SC06E::return ;;This is F23's scan code. Using this line acts as some insurance against cross-talk. comment this in if you have issues.
;Keep in mind, these use the CTRL modifier, as indicated by the ^
~^numpad1::
Keyshower("add marker color 1 (taran mod)")
marker()
send !{numpad1}
return
;I converted the "numpad5" key on the 2nd keyboard into a CTRL key, by using intercept. All my keyboard bindings can be found in: keyremap.ini
;intercept converted this the numlock key into a harmless numpad5.
~^numpad5::
Keyshower("add marker color 2 (taran mod)")
marker()
send !{numpad2}
return
~^numpadmult::
Keyshower("add marker color 3 (taran mod)")
marker()
send !{numpad3}
return
~^numpad3::
Keyshower("add marker color 4 (taran mod)")
marker()
send !{numpad4}
return
~^numpad7::
Keyshower("add marker color 5 (taran mod)")
marker()
send !{numpad5}
return
~^numpaddiv::
Keyshower("add marker color 6 (taran mod)")
marker()
send !{numpad6}
return
~^numpad0::
Keyshower("add marker color 7 (taran mod)")
marker()
send !{numpad7}
return
~^numpad9::
Keyshower("add marker color 8 (taran mod)")
marker()
send !{numpad8}
return
escape::msgbox,,, you pressed escape. this might cause like problems maybe, 0.9
;C:\ProgramData\NVIDIA Corporation\GeForce Experience\Update ;location to disable GFEv3
F2::insertSFX("Whoosh19-Short") ;you may not use spaces for filenames of sounds that you want to retreive in this way... since searching in premiere will disregard spaces in a a weird way... returning multiple wrong results....
F3::insertSFX("Whoosh7-Short")
F4::insertSFX("Whoosh2-Short")
F5::insertSFX("SimpleWhoosh12")
F6::insertSFX("SimpleWhoosh11")
F7::insertSFX("SimpleWhoosh10")
F9::insertSFX("SimpleWhoosh3")
F8::insertSFX("SimpleWhoosh8")
F10::insertSFX("woosh2")
F11::insertSFX("woosh1")
F12::InstantExplorer("Z:\Linus\5. Fast As Possible\_FAP Transcoding\_FAP 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;;;;;;;;
;;;;K120 keyboard;;;;;
`::msgbox tilde or weird quote thing??
1::insertSFX("bleep")
2::
3::
4::
5::insertSFX("")
6::insertSFX("record scratch")
7::preset("180 hue angle")
8::preset("PAINT WHITE")
9::preset("PAINT BLACK")
0::insertSFX("pop")
-::audioMonoMaker("left")
=::audioMonoMaker("right")
backspace::instantExplorer("Z:\Linus\Team_Documents\TARAN THINGS\cutting_room_floor")
;;;;;next line;;;;;;;;
;;;;;K120 keyb;;;;;;;;
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")
; w::recallClipboard("w")
; e::recallClipboard("e")
q::preset("T wipe straight 135")
w::preset("T wipe straight 225")
e::preset("T wipe soft 135")
r::preset("T wipe soft 225")
+q::preset("T wipe WHITE LINE 135")
+w::preset("T wipe WHITE LINE 225")
+e::preset("T wipe exposure 135")
+r::preset("T wipe exposure 225")
;t::preset("T wipe WHITE LINE 315")
t::recallClipboard("t")
+t::saveClipboard("t")
;;;still need to improve and fix the clipboard scriptypoo
;;t::recallClipboard(A_thishotkey)
;;+t::saveClipboard(A_thishotkey)
y::preset("autogate -25")
u::preset("red red red")
i::preset("multiply")
o::preset("flip vertical")
p::preset("flip horizontal")
[::preset("T impact flash MED")
]::preset("T Impact Pop")
\::
instantExplorer("Z:\Linus\9 - Tools\1-Sound Effects")
sleep 20
search() ;immediately highlights the search bar so you can search for a sound effect. Sadly this does not always seem to work...
sleep 250
search()
return
;;;;;next line;;;;;;;;
;;;;K120 keyboard;;;;;
; capslock::msgbox, , ,i hate capslock!, 1000
capslock::capslock
a::preset("T wipe straight 45")
s::preset("T wipe straight 315")
d::preset("T wipe soft 45")
f::preset("T wipe soft 315")
+a::preset("T wipe WHITE LINE 45")
+s::preset("T wipe WHITE LINE 315")
+d::preset("T wipe exposure 45")
+f::preset("T wipe exposure 315")
;g::recallClipboard(A_thishotkey)
;+g::saveClipboard(A_thishotkey)
g::preset("mosaic preset")
h::preset("invert preset")
j::preset("fast zoom")
k::preset("100 to 120 zoom")
l::preset("25% blur and darkener")
`;::preset("blur with edges") ;lol, it's not a comment until here -- the syntax highlighting gets this one wrong.
'::preset("Warp Stabilizer Preset")
enter::enter
;;;;;next line;;;;;;;;
Lshift::Lshift
;;msgbox, , ,you pressed Left shift - you should never see this message if you let it pass normally, 5
;now I use it as a modifier for some of the other numpad keys.
z::preset("T wipe soft down")
x::preset("T wipe soft up")
c::preset("T wipe soft left")
v::preset("T wipe soft right")
b::preset("Drop Shadow Preset")
n::preset("anchor and position to 0") ;no panning involved here.
m::preset("a0p0 pan down")
,::preset("crop 50 LEFT")
.::preset("crop 50 RIGHT")
/::preset("crop full")
;;;;;next area;;;;;;;;
;;;;K120 keyboard;;;;;
;;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
capslock::msgbox,,, K120 capslock,0.5
;;SC062 was once the remap of appskey, but it seemed to cause problems.
SC072::msgbox,,, K120 Lwin -to-> SC072:"Lang 1", 0.5 ;Lwin to SC072 - Lang1
SC073::msgbox,,, K120 Lalt -to-> SC073:"International1", 0.5 ;LAlt to SC073 - International1
SC07D::instantExplorer("Z:\Linus\1. Linus Tech Tips\Assets\Music") ;K120 rightShift -to- SC07D: International3
SC07B::preset("50% stereo") ;K120 rCTRL -to-> SC07B:International5 -to-> Premiere 50% stereo
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
; PrintScreen::InstantExplorer("Z:\Linus\Team_Documents\TARAN THINGS")
PrintScreen::
IfWinNotExist, ahk_class TvnWindowClass
Run, C:\Program Files\TightVNC\tvnviewer.exe
if WinExist("ahk_exe tvnviewer.exe")
WinActivate ahk_exe tvnviewer.exe
return
ScrollLock::InstantExplorer("Z:\Linus\1. Linus Tech Tips\Transcode\_LTT DELIVERY") ;just in case
;pause::InstantExplorer("Z:\Linus\1. Linus Tech Tips\Transcode\Delivery")
;numlock::msgbox, hello again
SC061::InstantExplorer("Z:\Linus\1. Linus Tech Tips\Transcode\_LTT DELIVERY") ;from scroll lock - K120
CtrlBreak::msgbox, CTRL BREAK - maybe the default output of the pause/break key??
pause::msgbox, is this the PAUSE key?? IDK
Break::msgbox, Maybe THIS is the pause/break key?? WHAT CAN I BELEVE ANYMORE??
pgdn::InstantExplorer("Z:\Linus\1. Linus Tech Tips\Pending")
end::InstantExplorer("Z:\Linus\5. Fast As Possible\1. Pending")
delete::InstantExplorer("Z:\Linus\6. Channel Super Fun")
pgup::InstantExplorer("N:\Linus Tech Tips")
home::InstantExplorer("N:\Fast As Possible") ;runexplorer("N:\Fast As Possible")
insert::InstantExplorer("N:\Channel Super Fun")
up::preset("push up")
down::preset("push down")
left::preset("push left")
right::preset("push right")
;;;;;next area;;;;;;;;
;;;;K120 keyboard;;;;;
numpad0::SendKey("numpad0", , "sky blue")
numpad1::SendKey(A_thishotkey, ,"blue-green")
numpad2::SendKey(A_thishotkey, ,"nudge down")
numpad3::
if WinActive("ahk_exe Adobe Premiere Pro.exe")
SendKey(A_thishotkey, ,"orange")
if WinActive("ahk_exe chrome.exe")
sendinput, ^+{tab} ;go to previous tab in chrome
return
numpad4::SendKey(A_thishotkey, ,"nudge left")
numpad5::msgbox, this text should never appear. I have remapped numpad5 to "left ctrl" in interceptor. scan code 1d,0,0.
numpad6::SendKey(A_thishotkey, ,"nudge right")
numpad7::SendKey(A_thishotkey, ,"purple")
numpad8::SendKey(A_thishotkey, ,"nudge up")
numpad9::SendKey(A_thishotkey, ,"dark green")
+numlock::msgbox, "shift numlock"
;on the K120
numlock::
IfWinActive, ahk_exe Adobe Premiere Pro.exe
{
tippy("numlock")
SendKey("numpad5", ,"red") ;msgbox, , , NUMLOCK - oh god... some keyboards behave very differently with this key! , 0.5
}
else
search()
return
numpadDiv::SendKey("numpadDiv", ,"clip blue")
numpadMult::SendKey("numpadmult", ,"pink")
numpadSub::openApp("ahk_class AU3Reveal", "AU3_Spy.exe", "Active Window Info") ;msgbox, , , num minus, 0.5
; numpadAdd::openApp("ahk_class Adobe Media Encoder CC", "Adobe Media Encoder.exe") ;msgbox, , , num ADD, 0.5
numpadAdd::openApp("ahk_class Notepad++", "notepad++.exe") ;msgbox, , , num ADD, 0.5
numpadEnter::switchToChrome()
numpadDot::openApp("ahk_class Photoshop", "Photoshop.exe") ;msgbox, , , num dot, 0.5
SC045::msgbox sc045... pause/break, but MAYBE numlock???
;scancode scan code information
SC07F::msgbox sc7F is as high as I could go, after 80 they become unusable for some reason.
SC080::msgbox sc080... this does not register.
SC0FF::msgbox sc0FF ...this does not register.
#if
#IfWinActive
;____________END OF K120 (2ND KEYBOARD) REMAPPED INTO ALL MACRO KEYS____________
#IfWinActive
; !F2::
; openApp("ahk_class ConsoleWindowClass", "C:\Users\TaranWORK\Downloads\Intercept - use this one\intercept.exe")
; openApp("ahk_class ConsoleWindowClass", "intercept.exe")
; ;must have both of these or it wont work.
; sleep 100
; ;send y
; return
;experimenting with scan codes. here is a list of blank ones.
;https://developer.mozilla.org/en/docs/Web/API/KeyboardEvent/code
; #if (getKeyState("F1", "P"))
; F1::return
;IN HERE, WE ARE SENDING THE FIRST SCANCODE KEYSTOKES. win key assignemtns will recieve.
#ifwinactive
#if
;scan code scancodes information
;according to https://msdn.microsoft.com/en-us/library/aa299374(v=vs.60).aspx it only goes up to 53
;but SC076 is f24 apparently?
/*
SC159:: ; Replace 159 with your key's value.
MsgBox, %A_ThisHotKey% was pressed.
return
*/
;3RD KEYBOARD CODE WAS HERE (was actually just a shitty numpad) - used F22 - but has been replaced with the stream deck.
;; https://autohotkey.com/board/topic/53346-explorer-view-mode/
; GroupAdd, Explorer, ahk_class CabinetWClass
; GroupAdd, Explorer, ahk_class ExploreWClass
; #IfWinActive, ahk_group Explorer
/*
;~~~~~~~~~JELLY COMB NUMPAD USING F21~~~~~~~~~~~
;#if (getKeyState("F21", "P") and If WinActive("ahk_exe Adobe Premiere Pro.exe"))
#if (getKeyState("F21", "P"))
F21::return
numpad0::
prFocus("program") ;the following shortcut only works if the program monitor is in focus...
send ^{numpadEnter} ;zoom to fit program monitor
prFocus("timeline")
return
numpad1::
prFocus("program")
send ^{numpadSub} ;zoom out program monitor
prFocus("timeline")
return
numpad2::
prFocus("program")
send ^{numpadAdd} ;zoom in program monitor
prFocus("timeline")
return
numpad3::sortExplorerByName()
numpad6::sortExplorerByDate()
numpad5::
If (exphWnd := WinActive("ahk_class CabinetWClass"))
{
ExplorerViewChange_ICONS(exphWnd)
}
return
numpad4::
If (exphWnd := WinActive("ahk_class CabinetWClass"))
{
ExplorerViewChange_Window(exphWnd)
}
return
numpad7::instantexplorer("C:\AHK\2nd-keyboard")
numpad8::instantexplorer("Z:\Linus\1. Linus Tech Tips\1. Template File Structure\Project")
Numpad9::instantexplorer("C:\Users\TaranWORK\Videos\Desktop") ;shadowplay folder opener
NumpadDiv::
Send,{LCtrl down}{NumpadAdd}{LCtrl up} ;expand name field in explorer
;msgbox,,, 4th keyboard %A_thishotkey%,0.6
return
backspace::
prFocus("program")
send ^+4 ;set program monitor resolution to 1/8th
tippy("wat")
prFocus("timeline")
return
NumpadSub::
prFocus("program")
send ^+3 ;res to 1/4
prFocus("timeline")
return
NumpadAdd::
prFocus("program")
send ^+2 ;res to 1/2
prFocus("timeline")
return
TAB::
prFocus("program")
send ^+1 ;set resolution to 1/1
prFocus("timeline")
return
NumpadEnter::msgbox,,, numpad F21 enter,0.3
numpadMult::instantexplorer("C:\Users\TaranWORK\Videos\Base Profile")
NumpadDot::
IfWinActive, ahk_exe Adobe Premiere Pro.exe
send !p ;choose poster frame shortcut in Premiere
return
#if
;~~~~END OF 4TH KEYBOARD (mechanical Jelly) USING INTERCEPTOR~~~~
; https://www.reddit.com/r/MechanicalKeyboards/comments/4kf2gk/review_jellycomb_mechanical_numpad/
; https://autohotkey.com/board/topic/29542-rebinding-alt-061/
; this is for the jellycomb numpad 4th keyboard's TOP ROW of keys:
$*~LAlt::
Loop 10
Hotkey, % "*Numpad" A_Index-1, HandleNum, on
keywait, LAlt ; replace with "Sleep 100" for an alternative
Loop 10
Hotkey, % "*Numpad" A_Index-1, HandleNum, off
If (Ascii_Unicode_Input = "061")
{
msgbox,,, you pressed the equals key!,1
; ;InputBox, password, Enter Password, (your input will be hidden), hide
; InputBox, UserInput, Phone Number, Please confirm murdering of premiere, , 640, 480
; if UserInput = "="
; {
; MsgBox, You entered "%UserInput%"
; Run, %comspec% /c "taskkill.exe /F /IM Adobe Premiere Pro.exe",, hide
; }
; else***
; return
}
If (Ascii_Unicode_Input = "040")
{
prFocus("Effect Controls") ;the following shortcut only works if the Effect Controls panel is in focus...
send ^!p ;shortcut for pin to clip
prFocus("timeline")
}
If (Ascii_Unicode_Input = "041")
msgbox,,, you pressed the close parenthisesis key!,1
Ascii_Unicode_Input := ""
return
HandleNum:
Ascii_Unicode_Input .= SubStr( A_ThisHotkey, 0 )
return
#if
*/
;________________END OF 4TH KEYBOARD OVERALL______________________
/*
;BEGIN secondary layer of main keyboard, using CAPSLOCK remapped to F20
#if (getKeyState("F20", "P"))
F20::return
escape::msgbox,,, you pressed escape. this might cause like problems maybe, 0.9
F1::send ^+{pgup}
F2::send ^+{pgdn} ;for firefox tab moving
F3::
F4::
F5::
F6::
F7::
F9::
F8::
F10::
F11::
F12::return
`::tooltip, llllll
1::
2::
3::
4::
5::
6::
7::
8::
9::
0::
-::
=::
backspace::return
;;;;;next line;;;;;;;;
;;;this is the fake F20 capslock layer;;;
tab::msgbox,,,within F20 - you pressed tab. :P,0.8
q::
w::
e::
r::
t::
y::
u::
i::
o::
p::
[::
]::
\::return
capslock::msgbox, , ,you should not ever see this text, 1000
a::tooltip,fancy A
s::tooltip,fancy S
d::tooltip,fancy D
f::
g::
h::
j::
k::
l::
`;::
'::
;;;;;next line;;;;;;;;
;;;this is the fake F20 capslock layer;;;
Lshift::return
z::
x::
c::
v::
b::return
n::
m::
,::
.::
/::return
Lwin::msgbox, LEFT win
Lalt::msgbox, LEFT alt
space::tooltip,
Ralt::msgbox, Ralt - doesnt work
Rwin::msgbox, Right Win
Rshift::msgbox RIGHT SHIFT lol
Rctrl::msgbox,,,Rctrlll,0.5
appskey::msgbox, this is the appskey KEY I guess
;;;F20 capslock keyboard;;;
;these were all formerly runExplorer()
PrintScreen::
ScrollLock::return
SC061::msgbox, scancode061
CtrlBreak::msgbox, CTRL BREAK?
pause::msgbox, is this the PAUSE key?? IDK
Break::msgbox, Maybe THIS is the pause/break key???
;;;this is the fake F20 capslock layer;;;
pgdn::
end::
delete::
pgup::
home::
insert::
up::
down::
left::
right::
;;;;;next area;;;;;;;;
;;;this is the fake F20 capslock layer;;;
numpad0::
numpad1::
numpad2::
numpad3::
numpad4::
numpad5::
numpad6::
numpad7::
numpad8::
numpad9::
+numlock::
numlock::
numpadDiv::
numpadMult::
numpadSub::
numpadAdd::
numpadEnter::return
numpadDot::
#if
;_________________end fake 5th keyboard with capslock remapped to F20__________________
*/
#IfWinActive
;BEGIN KEYBOARD 4, FULL AZIO KEYBOARD
#if (getKeyState("F24", "P")) ;and WinActive("ahk_exe Adobe Premiere Pro.exe") ;; bad idea to have the "and [something]", this means the keyboard behaves normally, any time you are NOT in Premiere...
F24::return ;F24
escape::
msgbox,,,you pressed escape. this might cause like problems maybe,0.9
tooltip,
return
F1::tooltip, Yes hello
F2::tooltip,
F3::
F4::
F5::
F6::
F7::
F9::
F8::
F10::
F11::
F12::tooltip, you pressed %A_thishotkey%
`::tooltip, 22222
1::gotofiretab("AHK needed","https://docs.google.com/document/d/1xsjjKYggXYig_4lfBMJ6LDGRZ9VOvDd7SCSTSi7GwN8/edit")
2::gotofiretab("LTT note","https://docs.google.com/document/d/1CWjC7DWyXGIFDaSwXzUsdHmdktvgV0kdgNOFEK7wf7U/edit")
3::
4::
5::
6::tooltip, you pressed %A_thishotkey%
7::
8::
9::
0::
-::
=::tooltip, you pressed %A_thishotkey%
backspace::send, ^+!r
;;;;;next line;;;;;;;;
; tab::msgbox,,, you pressed tab. :P,0.8
;VIDEO TRACKER
tab::
gotofiretab("Video Tracker LTT - Google","https://docs.google.com/spreadsheets/d/1FmuWOCKHxZbxS5XbwpVDP4M27BjTAJJ67B0yoSXUN9k/edit#gid=0")
; WinActivate ahk_exe firefox.exe
; sleep 10
; WinGet, the_current_id, ID, A
; vRet := JEE_FirefoxFocusTabByName(the_current_id, "Video Tracker LTT - Google")
; ;tooltip, vret is %vRet%
; if (vRet = 0)
; run, firefox.exe https://docs.google.com/spreadsheets/d/1FmuWOCKHxZbxS5XbwpVDP4M27BjTAJJ67B0yoSXUN9k/edit#gid=0
return
;;;this is the azio F24 keyboard;;;
q::
;controlsend, Qt5QWindowIcon2, ^!+r, ahk_exe obs64.exe
;tooltip, did that work?6
;return
w:: ;sendinput, +{F12}^w
e::
r::
t::
y::
u::
i::
o::
p::
[::
]::tooltip, you pressed %A_thishotkey%
\::run, C:\Program Files (x86)\Corsair\Corsair Utility Engine\CUE.exe
;;;this is the azio F24 keyboard;;;
;CAPSLOCK IS TRELLO
capslock::gotofiretab("Production Planner | Trello","https://trello.com/b/NevTOux8/ltt-production-planner")
;LEFTSHIFT > SC070 / International2 > Firefox calendar open
; SC00::gotofiretab("Linus Media Group Inc. – Calendar","https://calendar.google.com/calendar/b/0/r")
SC070::gotofiretab("2018","https://calendar.google.com/calendar/b/0/r")
;; ask about URLs: https://autohotkey.com/boards/viewtopic.php?f=6&t=26947&p=139114#p139114
;;;this is still the azio F24 keyboard;;;
;LEFTCTRL > SC071 / Lang2 > GMAIL INBOX
SC071::gotofiretab("Linus Media Group Inc. Mail","https://mail.google.com/mail/u/0/#inbox")
;or a tab that says "says..."
a::recallClipboard("a")
+a::saveClipboard("a")
s::recallClipboard("s")
+s::saveClipboard("s")
d::recallClipboard("d")
+d::saveClipboard("d")
f::recallClipboard("f")
+f::saveClipboard("f")
g::
h::
j::tooltip, ^!o ;render audio
k::sendinput, ^!i ;render entire work area (in to out)
l::return
`;::tooltip, you pressed %A_thishotkey% ;fun fact, the syntax highlighting gets this wrong. ";" is escaped, and therefore is not actually a comment.
'::send, ^+!, ;this is the premiere shortcut for "show audio keyframes" (on timeline)
enter::
if WinActive("ahk_class Premiere Pro")
{
prFocus("timeline")
sleep 10
sendinput, ^!+n ;toggle audio names
}
return
;;;;;next line;;;;;;;;
;;;this is the azio F24 keyboard;;;
Lshift::tooltip, you pressed %A_thishotkey%
z::
if WinActive("ahk_class Premiere Pro")
send ^+6 ;track targeting presets in premiere.
return
x::
if WinActive("ahk_class Premiere Pro")
send ^+7 ;track targeting presets in premiere.
return
c::
if WinActive("ahk_class Premiere Pro")
send ^+8 ;track targeting presets in premiere.
return
v::
if WinActive("ahk_class Premiere Pro")
send ^+9 ;track targeting presets in premiere.
return
b::
if WinActive("ahk_class Premiere Pro")
send ^+0 ;IDK
return
n::
if WinActive("ahk_class Premiere Pro")
send ^+- ;IDK
return
m::send, ^r ;in premiere, the Speed/duration panel
,::send, ^+m ;in premiere, Time interpolation > Frame sampling
.::send, ^+k ;in premiere, Time interpolation > Frame blending
/::send, ^+o ;in premiere, Time interpolation > optical flow
;these should perhaps highlight the timeline first...
;l control Linus Media Group Inc. Mail
Lwin::msgbox, LEFT win. ;but this won't happen, it was swapped with another key...
;Lalt has been remapped to SC064, which is F13.
;NOTE that this can interfere with normal F13 keypresses elsewhere in this script...
; SC064::
; IfWinNotExist, ahk_exe Adobe Media Encoder.exe
; run, C:\Program Files\Adobe\Adobe Media Encoder CC 2017\Adobe Media Encoder.exe ;ahk_exe Adobe Media Encoder.exe
; if WinExist("ahk_exe Adobe Media Encoder.exe")
; WinActivate ahk_exe Adobe Media Encoder.exe
; ;tooltip, ran ME
; return
;;;this is the azio F24 keyboard;;;
space::tooltip,
Ralt::msgbox, Ralt - doesnt work
Rwin::msgbox, Right Win
Rshift::msgbox RIGHT SHIFT lol
;Lwin to SC072 - Lang1
SC072::
;msgbox,,,sc072,0.5
;msgbox,,, trying to open VNC,0.5
IfWinNotExist, ahk_class TvnWindowClass
Run, C:\Program Files\TightVNC\tvnviewer.exe
if WinExist("ahk_exe tvnviewer.exe")
WinActivate ahk_exe tvnviewer.exe
return
appskey::msgbox, "this is the appskey KEY maybe. You should never see this message."
;AZIO Ralt -to-> SC077:Lang4 -to-> pin to clip
SC077::
tippy("pin to clip")
prFocus("effect controls")
send, ^!p ;my premiere shortcut for pin to clip is ctrl alt P
sleep 20
return
;RWin -to->> sc078:Lang3 -to->> OBS
SC078::
tooltip, rightWin -> SC078:Lang3 -> OBS
IfWinNotExist, ahk_class Qt5QWindowIcon ;this is broken, plz fix
Run, C:\Program Files (x86)\obs-studio\bin\64bit\obs64.exe
if WinExist("ahk_exe tvnviewer.exe")
WinActivate ahk_exe obs64.exe
return
PrintScreen::return
ScrollLock::return
SC061::msgbox,,, scancode061,1
CtrlBreak::msgbox, CTRL BREAK?
pause::msgbox, is this the PAUSE key?? IDK
Break::msgbox, Maybe THIS is the pause/break key???
pgdn::tooltip, you pressed %A_thishotkey%
end::tooltip, you pressed %A_thishotkey%
delete::sendinput, ^!+j ;lock/unlock all audio tracks
pgup::tooltip, you pressed %A_thishotkey%
home::tooltip, you pressed %A_thishotkey%
insert::sendinput, ^!+l ;lock/unlock all video tracks
up::
tooltip, uppp
WinGetPos,,, Width, Height, A
WinMove, A,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)
return
down::
left::
right::tooltip, you pressed %A_thishotkey%
;;;;;next area;;;;;;;;
;;;this is the azio F24 keyboard;;;
numpad0::
if WinActive("ahk_class Premiere Pro")