forked from TaranVH/2nd-keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathALL MULTIPLE KEYBOARD ASSIGNMENTS.ahk
1411 lines (1144 loc) · 36.8 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:\Users\TaranWORK\Documents\GitHub\2nd-keyboard\2nd keyboard support files
;the above will set A_WorkingDir. It must be done in the autoexecute area, BEFORE the code below.
Menu, Tray, Icon, shell32.dll, 283
;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:
#Include C:\Users\TaranWORK\Documents\GitHub\2nd-keyboard\gui.ahk
#include C:\Users\TaranWORK\Documents\GitHub\2nd-keyboard\All Premiere Functions.ahk
#include C:\Users\TaranWORK\Documents\GitHub\2nd-keyboard\Almost All Windows Functions.ahk
;-------------------------------------------------------------------------
; 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
;
; 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.
;------------------------------------------------------------------------
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; WATCH THESE VIDEOS TO UNDERSTAND YOUR OPTIONS FOR ADDING EXTRA KEYBOARDS:
; https://www.youtube.com/playlist?list=PLH1gH0v9E3ruYrNyRbHhDe6XDfw4sZdZr
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#NoEnv
SendMode Input
#InstallKeybdHook ;danger, this is untested right now
#UseHook On ;danger, also untested.
#SingleInstance force ;only one instance of this script may run at a time!
#MaxHotkeysPerInterval 2000
#WinActivateForce ;https://autohotkey.com/docs/commands/_WinActivateForce.htm ;this may prevent taskbar flashing.
detecthiddenwindows, on
;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"
;I currently use Intercept.exe: http://orbiter-forum.com/showthread.php?t=30829
; Lots of other explanatory videos other AHK scripts can be found on my youtube channel! https://www.youtube.com/user/TaranVH/videos
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;____________________________________________________________________________________
;
; 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
;---------------------------------------------------------------------------------
; u 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 to press without having to move my hand.
; 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 ` Application > Window > Project (This sets the focus onto a BIN.) (default is SHIFT 1)
; 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)
;
; Be aware that sometimes other programs like PUUSH can overlap/conflict with your customized shortcuts.
;_______________________________________________________________________________________________
;_____________________________________________________________________________
;
; 2ND KEYBOARD USING INTERCEPTOR ;_____________________________________________________________________________
;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. I will make a follow up video with new information, but it is currently in that video's description.
;#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.
#if (getKeyState("F23", "P"))
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.
;I converted the "numpad5" key on the 2nd keyboard into a CTRL, by using intercept.
;~VK25::Keyshower(A_thishotkey, "nudge clip right 5 frames") ;----virtual keys are okay... scancodes might be better, if you want the physical KEY itself, unchanged by chift or numlock.
;~VK27::Keyshower(A_thishotkey, "nudge clip left? 5 frames")
~^numpad1::
Keyshower("add marker color 1 (taran mod)")
marker()
send !{numpad1}
return
;this one does not work, probably because interceptor doesn't do multiple remappings...
~^numpad5::
Keyshower("add marker color 2 (taran mod)") ;intercept converted this one from numlock into a harmless numpad5.
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 is 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;;;;;;;;
`::msgbox tilde or weird quote thing??
1::insertSFX("bleep")
2::
3::
4::
5::insertSFX("")
6::insertSFX("record scratch")
7::insertSFX("")
8::insertSFX("")
9::insertSFX("")
0::insertSFX("pop")
-::audioMonoMaker("left")
=::audioMonoMaker("right")
backspace::preset("2.4 limiter") ; msgbox, , ,back spayce!, 100
;;;;;next line;;;;;;;;
tab::msgbox,,, 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::
w::
e::
r::
t::recallClipboard(A_thishotkey)
+q::
+w::
+e::
+r::
+t::saveClipboard(A_thishotkey)
y::preset("pop in transform")
u::preset("pop out transform")
i::preset("multiply")
o::preset("flip vertical")
p::preset("flip horizontal")
[::preset("pop in motion")
]::preset("pop out motion")
\::return ; "full reset mod" that I still have not programmed....
;;;;;next line;;;;;;;;
; capslock::msgbox, , ,i hate capslock!, 1000
capslock::capslock
a::
s::
d::
f::
g::recallClipboard(A_thishotkey)
+a::
+s::
+d::
+f::
+g::saveClipboard(A_thishotkey)
h::preset("100 to 120 zoom")
j::preset("anchor and position to 0") ;no panning involved here.
k::preset("zoom motion 115")
l::preset("25% blur and darkener")
`;::preset("blur with edges") ;lol, the syntax highlighting gets this one wrong.
'::preset("Warp Stabilizer Preset")
enter::Sendinput ^!e
;;;;;next line;;;;;;;;
Lshift::return ;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::
x::
c::
v::
b::recallClipboard(A_thishotkey)
+z::
+x::
+c::
+v::
+b::saveClipboard(A_thishotkey)
n::preset("pan left")
;m::preset("pan down")
m::preset("a0p0 pan down")
,::
preset("crop 50 LEFT")
;sleep 200
;cropClick()
return
.::
preset("crop 50 RIGHT")
;sleep 200
;cropClick()
return
/::
preset("crop full")
;sleep 150
;cropClick()
return
;;;;;next area;;;;;;;;
;;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.
Lwin::msgbox LEFT win
Lalt::msgbox LEFT alt
;space::tippy("2nd space") ;change this to EXCLUSIVE "play" only?
;Ralt::msgbox Ralt - doesnt work
;Rwin::msgbox Right Win - doesnt work
;Rshift::msgbox RIGHT SHIFT lol
;SC06E::msgbox,,,this was right WINkey,0.5
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::InstantExplorer("Z:\Linus\10. Ad Assets & Integrations\~INTEGRATIONS")
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
;these were all formerly runExplorer()
PrintScreen::InstantExplorer("C:\Users\TaranWORK\Documents\GitHub\2nd-keyboard")
ScrollLock::InstantExplorer("Z:\Linus\1. Linus Tech Tips\Transcode\Delivery") ;" ;msgbox, , , this key is NO GOOD TO USE!`nmaybe, 0.7
SC061::InstantExplorer("Z:\Linus\1. Linus Tech Tips\Transcode\Delivery") ;" ;msgbox, , , this key is NO GOOD TO USE!`nmaybe, 0.7
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;;;;;;;;
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 numpadlock"
numlock::SendKey("numpad5", ,"red") ;msgbox, , , NUMLOCK - oh god... some keyboards behave very differently with this key! , 0.5
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
/*
;These are now unused - I realized that keeping them as modifiers (allowing them to pass through normally) is more valuable then as single keys.
SC060::msgbox sc060, which I have assigned from LEFT SHIFT using intercept.exe
SC061::msgbox sc061, right shift
SC062::msgbox sc062, L CTRL
SC063::msgbox sc063, L WIN
SC064::msgbox sc064, L ALT
*/
; SC065::msgbox sc065, R ALT ;;;of is this F14? IDK
; SC066::msgbox sc066, R WIN
; SC067::msgbox sc067, R CTRL
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 2ND KEYBOARD IF USING INTERCEPTOR~~~~~~~~~~~~~~~~~~~~~
#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
; F10::sendinput, {F14} ;scancode 065 but firefox says 9C - maybe is in hex.
; F11::
; tooltip, yeah 05A
; sleep 500
; sendinput, {SC05A} ;just after F23, but is not F24.
; tooltip,
; return
; 2::sendinput {SC05B} ;just before F13
; 3::send {SC05E}
; 4::send {SC05F}
; 5::send {SC060}
; 6::sendinput {SC061}
; 7::sendinput {SC037} ;numpadmultiply
; 8::sendinput {SC038} ;alt left (lol)
; 9::sendinput {SC06A}
; 0::sendinput {SC06B}
;***************
;{SC0E8} is taken by one of my own scripts.*****
#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.
;~~~~~~~~~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::
;https://stackoverflow.com/questions/23028005/autohotkey-able-to-capture-firefox-tab
;this is a terrible solution, I think i will look into AAC instead
; https://autohotkey.com/boards/viewtopic.php?f=6&t=26947&p=126248#p126248
SetTitleMatchMode 2
needle := "Linus Media Group Inc. - Calendar"
WinActivate, Firefox
Loop {
WinGetTitle, title
IfWinNotActive, Firefox
break
if (InStr(title,needle))
Break
Else
send ^{PgUp}
sleep 50
}
return
;numpad4::tippy("sort Explorer by date")
numpad6::
IfWinActive, ahk_class CabinetWClass
{
send {alt}vo{down}{enter} ;sort by date modified, but it functions as a toggle...
tippy("sort Explorer by date")
}
return
numpad5::
IfWinActive, ahk_class CabinetWClass
{
send {alt}vo{enter} ;sort by name
tippy("sort Explorer by name")
}
return
numpad4::
if WinActive("ahk_class CabinetWClass") ;an explorer window
{
Send,{LCtrl down}{NumpadAdd}{LCtrl up} ;expand name field in explorer
}
return
numpad7::instantexplorer("C:\Users\TaranWORK\Documents\GitHub\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::msgbox,,, 4th keyboard %A_thishotkey%,0.6
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,1
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, with CAPSLOCK remapped to F20
#if (getKeyState("F20", "P"))
F20::return
escape::msgbox,,, you pressed escape. this might cause like problems maybe, 0.9
F1::
F2::
F3::
F4::
F5::
F6::
F7::
F9::
F8::
F10::
F11::
F12::return
`::
1::
2::
3::
4::
5::
6::
7::
8::
9::
0::
-::
=::
backspace::return
;;;;;next line;;;;;;;;
tab::msgbox,,, 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::
s::
d::
f::
g::
h::
j::
k::
l::
`;::
'::
;;;;;next line;;;;;;;;
Lshift::return
z::
x::
c::
v::
b::return
n::
m::
,::
.::
/::return
Lwin::msgbox, LEFT win
Lalt::msgbox, LEFT alt
space::tippy("3rd space")
Ralt::msgbox, Ralt - doesnt work
Rwin::msgbox, Right Win
Rshift::msgbox RIGHT SHIFT lol
SC06E::msgbox,,,right WINkey,0.5
SC06F::msgbox,,,SC06F,0.5
SC062::msgbox,,,SC062,0.5
Rctrl::msgbox,,,Rctrlll,0.5
appskey::msgbox, this is the appskey KEY I guess
;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???
pgdn::
end::
delete::
pgup::
home::
insert::
up::
down::
left::
right::
;;;;;next area;;;;;;;;
numpad0::
numpad1::
numpad2::
numpad3::
numpad4::
numpad5::
numpad6::
numpad7::
numpad8::
numpad9::
+numlock::
numlock::
numpadDiv::
numpadMult::
numpadSub::
numpadAdd::
numpadEnter::return
numpadDot::
/*
;These are now unused - I realized that keeping them as modifiers (allowing them to pass through normally) is more valuable then as single keys.
SC060::msgbox sc060, which I have assigned from LEFT SHIFT using intercept.exe
SC061::msgbox sc061, right shift
SC062::msgbox sc062, L CTRL
SC063::msgbox sc063, L WIN
SC064::msgbox sc064, L ALT
*/
#if
; ;end 5th keyboard with F20
#IfWinActive
;BEGIN KEYBOARD 4, FULL AZIO KEYBOARD
#if (getKeyState("F24", "P"))
F24::return ;F24
escape::
msgbox,,,you pressed escape. this might cause like problems maybe,0.9
tooltip,
return
F1::tooltip,
F2::
F3::
F4::
F5::
F6::
F7::
F9::
F8::
F10::
F11::
F12::tooltip, you pressed %A_thishotkey%
`::
1::
2::
3::
4::
5::
6::
7::
8::
9::
0::
-::
=::
backspace::tooltip, you pressed %A_thishotkey%
;;;;;next line;;;;;;;;
tab::msgbox,,, you pressed tab. :P,0.8
q::return
w::sendinput, +{F12}^w
e::
r::
t::
y::
u::
i::
o::
p::
[::
]::
\::tooltip, you pressed %A_thishotkey%
capslock::msgbox,,,i hate capslock!,0.5
a::
s::
d::
f::
g::
h::
j::
k::
l::
`;::
'::
enter::tooltip, you pressed %A_thishotkey%
;;;;;next line;;;;;;;;
Lshift::tooltip, you pressed %A_thishotkey%
z::send ^+6
x::send ^+7
c::send ^+8
v::send ^+9
b::send ^+0
n::send ^+-
m::
,::
.::
/::tooltip, you pressed %A_thishotkey%
Lwin::msgbox, LEFT win
Lalt::msgbox, LEFT alt
space::tooltip,
Ralt::msgbox, Ralt - doesnt work
Rwin::msgbox, Right Win
Rshift::msgbox RIGHT SHIFT lol
SC06E::msgbox,,,right WINkey,0.5
SC06F::msgbox,,,SC06F,0.5
SC062::msgbox,,,SC062 aka APPSKEY,0.5
; SC063::msgbox,,,SC063 aka LWIN,0.5
SC063::
Rctrl::
;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
;F14::msgbox,,, wtf is this doing here???,0.6
appskey::msgbox, this is the appskey KEY maybe
SC05A::msgbox,,, was remapped from ALT. now SC05A,0.5
PrintScreen::
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::
end::
delete::
pgup::
home::
insert::
up::
tooltip, uppp
WinGetPos,,, Width, Height, A
WinMove, A,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2)
return
down::
left::
right::
;;;;;next area;;;;;;;;
numpad0::
numpad1::
numpad2::
numpad3::
numpad4::
numpad5::
numpad6::
numpad7::
numpad8::
numpad9::
+numlock::
numlock::
numpadDiv::
numpadMult::
numpadSub::
numpadAdd::
numpadEnter::
numpadDot::tooltip, you pressed %A_thishotkey%
/*
;These are now unused - I realized that keeping them as modifiers (allowing them to pass through normally) is more valuable then as single keys.
SC060::msgbox sc060, which I have assigned from LEFT SHIFT using intercept.exe
SC061::msgbox sc061, right shift
SC062::msgbox sc062, L CTRL
SC063::msgbox sc063, L WIN
SC064::msgbox sc064, L ALT
*/
#if
;END OF FULL AZIO KEYBOARD
;---------------ALL NORMAL KEY ASSIGNMENTS---------------------
;---------------ALL NORMAL KEY ASSIGNMENTS---------------------
;---------------ALL NORMAL KEY ASSIGNMENTS---------------------
;okay, so these keys MUST be AFTER the intercept.exe launched keys, otherwise BOTH scripts will be called, which is bad. IDK why, but putting them down here fixes the problem.
#ifWinActive
!,::msgbox, A_workingDir should be %A_WorkingDir%
!.::msgbox, TaranDir should be %TaranDir%
^numpad1:: ;EASE IN AND EASE OUT
tooltip, yeah
;might be a hell of a lot easier with this kind of code:
; WinMenuSelectItem, Adobe Premiere Pro, , Edit, Ripple Delete
; WinMenuSelectItem, Adobe Premiere Pro, , Clear
; WinMenuSelectItem, Adobe Premiere Pro, , Temporal Interpolation, Ease In
; WinMenuSelectItem, Adobe Premiere Pro, , Temporal Interpolation, Ease Out
; WinMenuSelectItem, Adobe Premiere Pro, , Spatial Interpolation, Linear
; blockinput, sendandMouse
blockinput, MouseMove
; blockinput, on
click right
send T
sleep 10
send E
send E
sleep 10
send {enter}
sleep 10
tooltip,
; click right
click middle
sendinput {click right}
send T
sleep 10
send E
sleep 10
send {enter}
blockinput, off
blockinput, MouseMoveOff
;sleep 100
tooltip,
return
/*
G9: ctrl shift ] - add 7 gain, OR go to prev comment in Word.
See "Windows Mod - various functions.ahk" for a much more complete
explanation of the following macro key assignments
G13: "back" (varies per app)
G14: Activate Notepad++
G15: Activae Word
G16: Activate Firefox, then CTRL TAB on subsequent key presses.
G17: Activate Explorer, then browse through the windows on subsequent key presses
G18: Activate Premiere
*/
#IfWinActive
;macro key G1 on K95. universal SEARCH EVERYTHINGER
; this used to have a ~ to let it pass through... not sure why. it was creating an ENTER keypress effect in notepad++ so i removed it.
^+J::
if winactive("ahk_exe Adobe Premiere Pro.exe")
{
;Keyshower("effects Panel CLEAR",,1)
effectsPanelType("") ;set to macro key G1 on my logitech G15 keyboard. ;This just CLEARS the effects panel search bar so that you can type something in.
;previously was ^+0
}
else if winactive("ahk_exe notepad++.exe")
sendinput ^f
else if winactive("ahk_exe firefox.exe")
sendinput ^e
else if winactive("ahk_exe chrome.exe")
sendinput ^e
else if winactive("ahk_class CabinetWClass")