forked from TaranVH/2nd-keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ALL_MULTIPLE_KEYBOARD_ASSIGNMENTS.ahk
2713 lines (2077 loc) · 86.3 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
; global savedCLASS = "ahk_class Notepad++"
; global savedEXE = "notepad++.exe"
;This has now been changed to Teams (Hangouts replacement) since I use that a lot mroe now, and Notepad++ already has a button on numpad+ on the K120 keyboard.
;This is for macro key G14 by the way.
global savedCLASS = "ahk_class Chrome_WidgetWin_1"
global savedEXE = "Teams.exe" ;BEFORE the #include is apparently the only place these can go.
psApp := ComObjActive("Photoshop.Application") ;This is AMAZING and allows me to directly trigger photoshop actions using AHK scripts. Game changer! search "psApp" to see them all.
;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:
#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 windows shortcuts to all the AHK scripts that I use into my startup folder... which is here for all users:
; C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
; Or here for just one user:
; C:\Users\YOUR_USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
; There is also one here??
; C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
;For some of the firefox/chrome shortcuts, you have to install the ACC library into AutoHotKey (it's pretty easy, just follow the instructions on this page.)
;https://www.autohotkey.com/boards/viewtopic.php?f=6&t=26201
;one such function is JEE_FirefoxFocusTabByName
#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
#MaxThreadsPerHotkey 1
#KeyHistory 500 ; https://autohotkey.com/docs/commands/_KeyHistory.htm ; useful for debugging.
; https://www.autohotkey.com/docs/commands/GetKey.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 (was) unassigned. See my full list of scan codes and virtual keys to see what else is available:
;#MenuMaskKey sc08A ; vk07 is (was) unassigned. See my full list of scan codes and virtual keys to see what else is available: https://docs.google.com/spreadsheets/d/1GSj0gKDxyWAecB3SIyEZ2ssPETZkkxn67gdIwL1zFUs/edit#gid=0
#MenuMaskKey vk07
;_________________________________________________________________________________________
;
; 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
; THESE ARE ESSENTIAL FOR THE SCRIPTS TO WORK PROPERLY.
; YOU CAN SEE/USE ALL MY PREMEIRE SHORTCUTS, THEY ARE HERE! https://github.com/TaranVH/2nd-keyboard/blob/master/Settings_and_shortcuts/
;----------------------------------------------------------------------------------
; 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" (for human to use)
; ctrl F8 toggle "selection follows playhead" (for macros to use)
; 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 5 Application > Window > Effect Controls (Default is SHIFT 5)
; 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 (the 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 —OBSOLETE ---
; ctrl shift 6 Apply source assignment preset 1 (set to V5 and A3)
; ctrl ; (semicolon) Add Marker
; ctrl alt k Remove selected marker
; ctrl shift alt 9 activate lumetri scopes
; ctrl alt D "deselect all" (clips on the timeline)
; ctrl alt shift K "shuttle stop"
; CTRL SEMICOLON "(add) marker."
; ctrl shift alt R is "reset to saved layout" (workspace)
; Media_Stop::^numpad7 select label group
; ctrl alt P pin to clip
; ^!+j lock/unlock all audio tracks
; ^!+l lock/unlock all video tracks
; ^!+, show audio keyframes (on timeline)
; ^!+n toggle audio names (on timeline)
; ^!+/ Show through edits
; ^+6 Source Assignment Preset 1
; ^+7 Source Assignment Preset 2 (reserved)
; ^+8 Source Assignment Preset 3 (reserved)
; ^+9 Source Assignment Preset 4 (reserved)
; ^+m Time interpolation > Frame sampling
; ^+k Time interpolation > Frame blending
; ^+o Time interpolation > optical flow
;----------------------------------------------------------------------------------
; KEYS PHOTOSHOP FUNCTIONS
;----------------------------------------------------------------------------------
;^!h vertical flip
;^h horizontal flip
; Be aware that sometimes other programs like PUUSH can overlap/conflict with your customized shortcuts.
;___________________________________________________________________________________
;
; NOTE:
; SC0E8: "scan code of an unassigned key" that I use to tell the computer "yeah, treat this like a keyboard,"
; SC0E9: Nullify ALT's sticky key effect. See for more info: Alt_menu_acceleration_DISABLER.ahk
; VK07: #menumaskkey https://autohotkey.com/docs/commands/_MenuMaskKey.htm
;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
;I might have to use proper functions to get these to type faster
SC16D::SendInput {Raw}%ClipBoard_1% ;launch_media
vk2B::SendInput {Raw}%ClipBoard_2% ;Execute
SC121::SendInput %ClipBoard_3% ;launch (1)
;note to self, this is where to go for tap dance stuff
; https://autohotkey.com/board/topic/35566-rapidhotkey/
currentTool = "v" ;This is super useful and important for a Premiere script, you'll see...
; psApp := ComObjActive("Photoshop.Application") ;This is AMAZING and allows me to directly trigger photoshop actions using AHK scripts. Game changer! search "psApp" to see them all.
; ;edit: apoparently defining the variable here doesn't work... hmm...
#if
;this is pause/break. I'm using it for debugging...
; ^sc045::
; +sc045::
; !sc045::
;scratch that, I think the * (hook??) makes it insensitive to modifiers.
*sc045::
tooltip, pause break
sleep 100
tooltip,
KeyHistory
sleep 10
return
; ; ctrlbreak::
; ; ^ctrlbreak::
;both removed from here because they're useless.
;https://autohotkey.com/board/topic/110524-how-to-create-a-hot-key-for-ctrl-scrolllock-vs-ctrl-pause/
;____________________________________________________________________
;
; 2ND KEYBOARD USING HASU USB TO USB (Logitech K120)
;____________________________________________________________________
; watch [link NYA] to understand how this works.
; https://www.1upkeyboards.com/shop/controllers/usb-to-usb-converter/
;#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.
;;This also means that you must NEVER use F23 for anything else. Doing so will sometimes allow a key 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 more insurance against cross-talk. comment this in if you have issues.
escape::msgbox,,, you pressed escape. this might cause like problems maybe, 0.9
F1::return
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("N:\Team_Documents\N_TARAN_THINGS\prompter and cutting_room_floor") ;"FLOOR"
F12::instantExplorer("Z:\Linus\17. Short Circuit\Transcode\_SC Delivery") ;"FLOOR"
;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?? K120
1::insertSFX("bleep")
2::
3::return
4::
tooltip, this happens on key down
keywait, 4 ;waits for the key to go up
tooltip, and this happens on key up. dang
return
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::
if WinActive("New TightVNC Connection") ;if we are at the thingy that asks for the server IP (already inputted)
{
Sendinput, {enter}
goto tvnEND ;LOL ARE YOU TRIGGERED BY THIS!!? DESPAIR!! DESPAIR!!!!
}
if WinActive("Vnc Authentication") ;if we are at the thingy that asks for the PASSWORD!
{
FileRead, SECRET_SERVER_PASS, C:\AHK\2nd-keyboard\Taran's_Windows_Mods\SECRET_SERVER_PASS_NOT_ON_GITHUB.txt
;msgbox, pass is %SECRET_SERVER_PASS%
Sendinput, %SECRET_SERVER_PASS%
sleep 10
Sendinput, {enter}
goto tvnEND ;LOL ARE YOU TRIGGERED BY THIS!!? DESPAIR!! DESPAIR!!!!
}
IfWinNotExist, ahk_class TvnWindowClass
Run, C:\Program Files\TightVNC\tvnviewer.exe
if WinExist("ahk_exe tvnviewer.exe")
WinActivate ahk_exe tvnviewer.exe
tvnEND:
;all done
return
;;;;;next line;;;;;;;;
;;;;;K120 keyb;;;;;;;;
tab::msgbox,,,K120 - you pressed tab. :P,0.8
q::preset("T wipe straight 315")
w::preset("T wipe straight 45")
e::
KeyWait, e ;waits for E to be RELEASED!
;NOTE, this worked great, so it is now a part of preset(), so it is no longer needed here.
;I'm keeping it here as a LESSON FOR YOU ALL because it doens't actually do anything bad.
preset("T wipe soft 315")
return
r::preset("T wipe soft 45")
+q::preset("T wipe WHITE LINE 315")
+w::preset("T wipe WHITE LINE 45")
+e::preset("T wipe exposure 315")
+r::preset("T wipe exposure 45")
t::recallClipboard("t")
+t::saveClipboard("t")
;;t::recallClipboard(A_thishotkey)
;;+t::saveClipboard(A_thishotkey)
y::preset("autogate -25")
u::preset("90 IRE")
i::preset("multiply")
o::
if WinActive("ahk_exe adobe premiere pro.exe")
preset("flip vertical")
if WinActive("ahk_exe Photoshop.exe")
sendinput, ^!h ;my photoshop shortcut for vertical flip
return
p::
if WinActive("ahk_exe adobe premiere pro.exe")
preset("flip horizontal")
if WinActive("ahk_exe Photoshop.exe")
sendinput, ^h ;my photoshop shortcut for horizontal flip
return
[::preset("T impact flash MED")
]::preset("T Impact Pop")
\::
instantExplorer("Z:\Linus\Team_Documents\TARAN THINGS\TARAN ASSETS\SFX")
; 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() ;so i do it again here. still doesn't always work.
return
;;;;;next line;;;;;;;;
;;;;K120 keyboard;;;;;
; capslock::msgbox, , ,i hate capslock!, 1000
;capslock::capslock
a::preset("T wipe straight 225")
s::preset("T wipe straight 135")
d::preset("T wipe soft 225")
f::preset("T wipe soft 135")
+a::preset("T wipe WHITE LINE 225")
+s::preset("T wipe WHITE LINE 135")
+d::preset("T wipe exposure 225")
+f::preset("T wipe exposure 135")
;g::recallClipboard(A_thishotkey)
;+g::saveClipboard(A_thishotkey)
g::preset("mosaic preset")
h::preset("invert preset")
j::preset("110 to 100 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("a0p0 pan down")
enter::enter
;;;;;next line, still inside the K120;;;;;;;;
;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 left")
x::preset("T wipe soft down")
c::preset("T wipe soft up")
v::preset("T wipe soft right")
+z::preset("T wipe exposure left")
+x::preset("T wipe exposure down")
+c::preset("T wipe exposure up")
+v::preset("T wipe exposure right")
b::preset("Drop Shadow Preset")
n::preset("anchor and position to 0") ;no panning involved here.
m::preset("Warp Stabilizer Preset")
,::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
F20::msgbox,,, K120 capslock to F20,0.5
;;SC062 was once the remap of appskey, but it seemed to cause problems.
;;Lshift -to-> SC070-International 2 -back-to-> Lshift. This is easier than having to re-flash the QMK chip...
SC070::Lshift
SC071 up::tooltip, [F23] LCtrl -to-> SC071-Language 2
SC072 up::tooltip, [F23] LWin -to-> SC072-Language 1
SC073 up::tooltip, [F23] LAlt -to-> SC073-International 1
SC077::instantExplorer("N:\Team_Documents\N_TARAN_THINGS") ;;tooltip, [F23] RAlt -to-> SC077-Language 4
SC078::instantExplorer("Z:\Linus\Team_Documents\TARAN THINGS\TARAN ASSETS\LOGOS") ;;tooltip, [F23] RWin -to-> SC078-Language 3
SC079::instantExplorer("Z:\Linus\Team_Documents\TARAN THINGS\TARAN ASSETS\BGs") ;tooltip, [F23] AppsKey -to-> SC079-International 4
SC07B::instantExplorer("Z:\Linus\Team_Documents\TARAN THINGS\TARAN ASSETS\Screenshots") ;K120 rCTRL:: -to-> SC07B:International5
SC07D::instantExplorer("Z:\Linus\Team_Documents\TARAN THINGS\TARAN ASSETS") ;K120 RShift -to-> SC07D: International3 --to--> \TARAN ASSETS\
space::InstantExplorer("Z:\Linus\10. Ad Assets & Integrations")
;;;;;;;-----------------------------------------
PrintScreen::InstantExplorer("V:\1. LTT vault 2") ;will make tapdance keys one day...
ScrollLock::InstantExplorer("N:\Fast As Possible")
;scroll lock WAS reassigned to SC061 back when i used interception
SC07E::InstantExplorer("N:\Linus Tech Tips")
;;Pause -to-> SC07E:Brazilian comma
; 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??
insert::InstantExplorer("Z:\Linus\2. Tech Linked\5. Transcode\_TL Delivery")
home::InstantExplorer("Z:\Linus\5. Fast As Possible\_FAP Transcoding\_FAP Delivery")
pgup::InstantExplorer("Z:\Linus\1. Linus Tech Tips\Transcode\_LTT DELIVERY")
delete::InstantExplorer("Z:\Linus\2. Tech Linked\3. Pending")
end::InstantExplorer("Z:\Linus\5. Fast As Possible\1. Pending")
pgdn::InstantExplorer("Z:\Linus\1. Linus Tech Tips\Pending")
up::preset("push up")
down::preset("push down")
left::preset("push left")
right::preset("push right")
;;=========== THE K120 NUMPAD ==============;;
; ^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.
; ;the following assignment is no longer relevant, i think.
; ^numpad5::
; Keyshower("add marker color 2 (taran mod)")
; marker()
; send ^+{numpad2}
; return
; ;the above assignment is no longer relevant
; ; ^numpadmult::
; ; Keyshower("add marker color 3 (taran mod)")
; ; marker()
; ; send ^+{numpad3}
; ; return
numpadmult::
Keyshower("add marker color 3 (taran mod)")
marker()
send ^!{numpad3} ;shortcut for Set marker color 3
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
numpaddiv::
send ^!{numpad6} ;shortcut for CREATE marker color 6 (white)
;;;the below code is no longer necessary, since Adobe added shortcuts to create markers of any color!
; Keyshower("add marker color 6 (taran mod)")
; marker()
; sleep 10
; send ^!{numpad6} ;this WAS the shortcut for Set marker color 6
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
;;;STILL IN THE K120 KEYBOARD
;;NumLock -to-> SC05C-International 6
SC05C::
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
numpadins:: ;(this is SHIFT NUMPAD0)
numpad0::SendKey("numpad0", , "sky blue")
numpadend:: ;(this is SHIFT NUMPAD1)
numpad1::
;openApp("", ahk_exe waifu2x-caffe.exe, waifu2x-caffe)
;SendKey(A_thishotkey, ,"blue-green")
IfWinNotExist, ahk_exe waifu2x-caffe.exe
Run, C:\waifu2x-caffe\waifu2x-caffe.exe
if not WinActive(ahk_exe waifu2x-caffe.exe)
{
WinActivate ahk_exe waifu2x-caffe.exe
;WinGetTitle, Title, A
WinRestore waifu2x-caffe
}
; I had to do this directly because it has the same AHK_class as a regular explorer window, so my usual use od openApp() woudln't work. Oh teh wells.
return
numpaddown::
numpad2::SendKey(A_thishotkey, ,"nudge down")
numpadpgdn::
numpad3::
;The following code is obsolete now that Premiere allows you to create markers of any color, using shortcuts. horray!
; if WinActive("ahk_exe Adobe Premiere Pro.exe"){
; Keyshower("add marker color 4 (taran mod)")
; marker()
; send ^!{numpad4} ;set marker color 3
; sleep 5
; marker() ;Go inside that marker so that you can start typing a comment
; ;;SendKey(A_thishotkey, ,"orange")
; }
if WinActive("ahk_exe Adobe Premiere Pro.exe"){
sendinput, +{numpad3}
}
if WinActive("ahk_exe chrome.exe")
sendinput, ^+{tab} ;go to previous tab in chrome
return
numpadleft::
numpad4::SendKey(A_thishotkey, ,"nudge left")
numpadclear::
numpad5::numpad5
;numpad5::Rctrl ;because I use it... well, as a ctrl key. baka.
numpadright::
numpad6::SendKey(A_thishotkey, ,"nudge right")
numpadhome::
numpad7::SendKey(A_thishotkey, ,"purple")
numpadup::
numpad8::SendKey(A_thishotkey, ,"nudge up")
numpadpgup::
numpad9::SendKey(A_thishotkey, ,"yellow")
;numpadDiv::SendKey("numpadDiv", ,"clip blue")
;numpadMult::SendKey("numpadmult", ,"pink")
numpadSub::
If Not WinExist("ahk_class AU3Reveal")
openApp("ahk_class AU3Reveal", "C:\Program Files\AutoHotkey\WindowSpy.ahk", "Active Window Info")
; else
; msgbox, heyyyy ;doesn't work for some raisin.
; if WinExist("ahk_class AU3Reveal")
; msgbox, heyyo
;WinClose, Window Spy
return
; 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()
numpaddel::
numpadDot::openApp("ahk_class Photoshop", "Photoshop.exe") ;msgbox, , , num dot, 0.5
#if
#IfWinActive
;-----------------------------------------------------------------------
;--------END OF K120 (2ND KEYBOARD) REMAPPED INTO ALL MACRO KEYS--------
;-----------------------------------------------------------------------
;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
#if
;~~~~(mechanical Jelly) USING INTERCEPTOR (No longer used)~~~~
; But the code for the ALT characters is really clever, and I've seen it nowhere else, so I am saving it here for all of y'all
; 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 JELLY NUMPAD______________________
/*
;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
;;;;testing shit
;+F12::gotofiretab("Calendar - April 2019","https://calendar.google.com/calendar/b/0/r")
;;;;;okay done with testing
;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::return ;need to make this release all modifier keys and F24 like it did before
F1::tooltip, Yes hello
F2::tooltip,
F3::
F4::
F5::
F6::
F7::
F9::
F8::
F10::
F11::
F12::tooltip, you pressed F24 then %A_thishotkey%
;`::tooltip, tilde thing
`::
gotofiretab("ADDENDUM to 4hr","https://docs.google.com/document/d/1YRr5O2PN10PRtAMZHUJJhh6_2FXANjaHTGYH0RadTaI/edit")
return
1::gotofiretab("AHK needed","https://docs.google.com/document/d/1xsjjKYggXYig_4lfBMJ6LDGRZ9VOvDd7SCSTSi7GwN8/edit")
2::gotofiretab("LTT To Do - Google Docs","https://docs.google.com/document/d/1Gi8sruMEBEQG3WHPM2jaFOQ1oR1A8bSz47vSxB9NfBQ/edit")
3::gotofiretab("LTT note","https://docs.google.com/document/d/1CWjC7DWyXGIFDaSwXzUsdHmdktvgV0kdgNOFEK7wf7U/edit")
4::gotofiretab("Music Hypercube - Google Docs","https://docs.google.com/document/d/11hIiENqLMtuQRLV4FjZMRY2uNFLtPw5QW6fivMix9VE/edit")
5::
6::tooltip, you pressed F24 then %A_thishotkey%
7::
8::
9::
0::
-::
=::tooltip, you pressed F24 then %A_thishotkey%
backspace::send, ^+!r ;ctrl shift alt r is "reset workspace"
;;;;;next line;;;;;;;;
; tab::msgbox,,, you pressed tab. :P,0.8
;VIDEO TRACKER
tab::gotofiretab("Fast As Possible | Trello","https://trello.com/b/yUSFtaXn/fast-as-possible")
; 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::
;HUGE SHOUT OUT TO MICHAEL BUNZEL FOR EMAILING ME WITH THE FANTASTIC CODE!
if WinActive("ahk_class Photoshop")
{
psApp := ComObjActive("Photoshop.Application")
psApp.DoAction("50% smaller - bilinear", "taran actions")
}
return
w::
psApp := ComObjActive("Photoshop.Application")
psApp.DoAction("50% smaller NN", "taran actions")
return
e::
psApp := ComObjActive("Photoshop.Application")
psApp.DoAction("200% nearest neighbor", "taran actions")
return
r::
psApp := ComObjActive("Photoshop.Application")
psApp.DoAction("300% Nearest Neighbor", "taran actions")
return
t::
psApp := ComObjActive("Photoshop.Application")
psApp.DoAction("Surface blur - dejpeg", "taran actions")
return
y::
u::
i::tooltip, you pressed F24 then %A_thishotkey%
;o::sendinput, ° ;; this will send °
o::sendinput, {ASC 0176} ;the degree symbol!
p::
[::
]::tooltip, you pressed F24 then %A_thishotkey%
\::run, C:\Program Files (x86)\Corsair\Corsair Utility Engine\CUE.exe
;;;this is the azio F24 keyboard;;;
;F20 IS CAPSLOCK
;CAPSLOCK IS TRELLO
F20::
capslock::gotofiretab("Production Planner | Trello","https://trello.com/b/NevTOux8/ltt-production-planner")
;LEFTSHIFT > SC070 / International2 > Firefox calendar open
;SC070::gotofiretab("Linus Media Group Inc. – Calendar","https://calendar.google.com/calendar/b/0/r") ;even though i directly copied the text, it does not work. and IDK how to split a string so I'll have to write in the months manually...
;;;this is(was) Lshift::
SC070::gotofiretab("Calendar - July 2020","https://calendar.google.com/calendar/b/0/r") ;even though i directly copied the text, it does not work. and IDK how to split a string so I'll have to write in the months manually...
;SC070::gotofiretab("2018","https://calendar.google.com/calendar/b/0/r")
;en dash –
;em dash –
;; 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 up::gotofiretab("Linus Media Group Inc. Mail","https://mail.google.com/mail/u/0/#inbox","says...")
;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")
a::
;this is amazing. I can launch photoshop actions DIRECTLY from AHK, without needing to go through one of the 44 very restricted shortcuts!!
psApp := ComObjActive("Photoshop.Application")