Skip to content

Commit

Permalink
Massive update - all scripts moved to C:/AHK
Browse files Browse the repository at this point in the history
Now everything is based from
C:\AHK\2nd-keyboard
which means that it's incredibly easy to use these scripts on any
machine - no more messing about the a username! all paths can remain
exactly the same!
The only disadvantage is that these scripts will be isntalled for ALL
users of the machine. Soooo you can change the directory if you really
want to, but you'd have to do that anyway.
SO YEAH GOOD SHIT ALL AROUND
plus some stability improvements.
  • Loading branch information
TaranVH committed Aug 28, 2018
1 parent 664d299 commit 06b026e
Show file tree
Hide file tree
Showing 397 changed files with 64,978 additions and 35,173 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@


SetWorkingDir, C:\Users\TaranWORK\Documents\GitHub\2nd-keyboard\2nd keyboard support files
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
Expand All @@ -13,12 +11,12 @@ global savedCLASS = "ahk_class Notepad++"
global savedEXE = "notepad++.exe" ;BEFORE the #include is apparently the only place these can go.


#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
#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

;-------------------------------------------------------------------------
; HELLO PEOPLES
; 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
Expand Down Expand Up @@ -125,7 +123,7 @@ SetNumLockState, AlwaysOn ;i think this only works if launched as admin.
;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")) && 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.


Expand Down Expand Up @@ -218,9 +216,9 @@ F12::search() ;"search" is also used on ^+j
4::
5::insertSFX("")
6::insertSFX("record scratch")
7::insertSFX("")
8::insertSFX("")
9::insertSFX("")
7::preset("180 hue angle")
8::preset("PAINT WHITE")
9::preset("PAINT BLACK")
0::insertSFX("pop")
-::audioMonoMaker("left")
=::audioMonoMaker("right")
Expand Down Expand Up @@ -335,7 +333,7 @@ Rshift::instantExplorer("Z:\Linus\1. Linus Tech Tips\Assets\Music")
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")
Rctrl::preset("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
Expand Down Expand Up @@ -542,7 +540,7 @@ If (exphWnd := WinActive("ahk_class CabinetWClass"))
}
return
numpad7::instantexplorer("C:\Users\TaranWORK\Documents\GitHub\2nd-keyboard")
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
Expand Down Expand Up @@ -849,15 +847,22 @@ capslock::gotofiretab("Production Planner | Trello","https://trello.com/b/NevTOu

;remapped from left shift. CALENDAR
; SC060::gotofiretab("Linus Media Group Inc. – Calendar","https://calendar.google.com/calendar/b/0/r")
SC060::gotofiretab("Calendar","https://calendar.google.com/calendar/b/0/r")
SC060::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


;FROM LEFT CTRL. INBOX
SC062::gotofiretab("Linus Media Group Inc. Mail","https://mail.google.com/mail/u/0/#inbox")
;or a tab that says "says..."
a::
s::
d::
f::
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::
Expand Down Expand Up @@ -903,10 +908,11 @@ if WinActive("ahk_class Premiere Pro")
send ^+- ;IDK
return

m::
,::
.::
/::tooltip, you pressed %A_thishotkey%
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

Expand Down Expand Up @@ -990,7 +996,7 @@ numpad5::monitorKeys("program","^+1") ;program monitor resolution to 1/1

numpad6::tooltip, you pressed %A_thishotkey%

numpad7::monitorKeys("source","^!l") ;source monitor res to 1/2
numpad7::monitorKeys("source","^{numpad5}") ;source monitor res to 1/2. ^{numpad2} does not work because CTRL SHIFT ALT 2 is the shortcut for the source monitor. cross talk.

numpad8::monitorKeys("program","^+2") ;program monitor res to 1/2

Expand Down Expand Up @@ -1124,6 +1130,11 @@ return
;;;;;;;;;;;;;;EXPLORER SHORTCUTS;;;;;;;;;;;;;;;;;
; #IfWinActive, ahk_class #32770 ahk_exe Adobe Premiere Pro.exe ;this is specifically premiere's save/load dialoge.

#if WinActive("ahk_class #32770") and WinActive("ahk_exe ShareX.exe") ;this is very specifically premiere's save/load dialoge, and it is NOT the Export Settings window.

`::Sendinput, !{up} ; go DOWN one folder level in explorer


; left & right::msgbox, hello
#if WinActive("ahk_class #32770") and WinActive("ahk_exe Adobe Premiere Pro.exe") and WinActive("Save Project") ;this is very specifically premiere's save/load dialoge, and it is NOT the Export Settings window.

Expand Down Expand Up @@ -1374,14 +1385,16 @@ G12: F14 - Scale

;put selected text into a lengthend comment in premiere.
F12::
sendinput, ^a
sleep 80
sendinput, ^c
sleep 15
WinActivate ahk_class Premiere Pro
sleep 10
send, ^!d ;ctrl alt D is "deselect all" (clips on the timeline)
sleep 10
sleep 20
send, ^!+k ;ctrl alt shift K is "shuttle stop"
sleep 10
sleep 20
send, ^`; ;CTRL SEMICOLON is my premiere shortcut for "(add) marker."
sleep 10
send, ^`; ;if you press it again, it opens that comment.
Expand All @@ -1399,7 +1412,7 @@ return

#IfWinActive
/*
See "Windows Mod - various functions.ahk" for a much more complete explanation of the following macro key assignments
See "Almost_All_Windows_Functions.ahk" for a much more complete explanation of the following macro key assignments
G13: "back" (varies per app)
G14: Activate Notepad++
Expand All @@ -1412,7 +1425,8 @@ G18: Activate/switch to Premiere

#IfWinActive ahK_exe Adobe Premiere Pro.exe
;TITLE BAR REMOVER
;;ctrl bacKslash is a nice shortcut in MACINTOSH Premiere for hiding the title bar. There is no Windows equivalent... unless you use autohotKey!
;;ctrl backslash is a nice shortcut in MACINTOSH Premiere for hiding the title bar. There is no Windows equivalent... unless you use autohotKey!
;;WARNING THOUGH - i think this script makes premiere less stable. I hardly use it...
;;https://jacKsautohotKeyblog.wordpress.com/2016/05/27/autohotKey-toggles-and-the-ternary-operator-beginning-hotKeys-part-18/
^\::
If (toggle := !toggle)
Expand Down Expand Up @@ -1545,7 +1559,7 @@ Media_Stop::^numpad7
Media_Prev::^numpad8
Media_Play_Pause::^numpad9
Media_Next::^numpadMult
Volume_Mute::^numpadDiv
;Volume_Mute::^numpadDiv
;These are assigned to some of the new LABEL COLORS in premiere, using Premiere's own shortcut assignement panel.


Expand Down Expand Up @@ -1870,7 +1884,7 @@ SC064::msgbox sc064, L ALT
; #IfWinActive
; ;These are mapped from the stream deck. Note that this actually includes a SHIFT keypress, due to the weird effects of numlock being on or off, which acts as if SHIFt is down... or up... whatever.
; ; So, rather than ^+!numpad1:: ... instead, you have to do:
; ^!numpadend::instantexplorer("C:\Users\TaranWORK\Documents\GitHub\2nd-keyboard")
; ^!numpadend::instantexplorer("C:\AHK\2nd-keyboard")
; ^!NumpadDown::instantexplorer("Z:\Linus\1. Linus Tech Tips\1. Template File Structure\Project")
; ^!numpadpgdn::instantexplorer("C:\Users\TaranWORK\Videos\Desktop") ;shadowplay folder opener

Expand Down
Loading

0 comments on commit 06b026e

Please sign in to comment.