-
Notifications
You must be signed in to change notification settings - Fork 2
/
Alex Scripts.ahk
75 lines (65 loc) · 3.38 KB
/
Alex Scripts.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
#SingleInstance Force
;// This script is for a friend and is simply kept in the repo to more easily track it as well as allowing them to more easily access it in multiple locations
#Include <Classes\Startup>
#Include <Classes\ptf>
#Include <KSA\Keyboard Shortcut Adjustments>
#Include <Classes\Editors\Premiere>
#Include <Classes\keys>
#Include <Classes\switchTo>
#Include <Classes\coord>
#Include <Classes\clip>
#Include <Classes\block>
#Include <Classes\obj>
#Include <Classes\tool>
#Include <Classes\winGet>
#Include <Classes\timer>
#Include <Classes\Settings>
#Include <Classes\Streamdeck_opt>
#Include <GUIs\settingsGUI\settingsGUI>
SetWorkingDir(ptf.rootDir) ;sets the scripts working directory to the directory it's launched from
SetDefaultMouseSpeed(0) ;sets default MouseMove speed to 0 (instant)
SetWinDelay(0) ;sets default WinMove speed to 0 (instant)
A_MaxHotkeysPerInterval := 400 ;BE VERY CAREFUL WITH THIS SETTING. If you make this value too high, you could run into issues if you accidentally create an infinite loop
A_MenuMaskKey := "vkD7" ;necessary for `alt_menu_acceleration_disabler.ahk` to work correctly
TraySetIcon(ptf.Icons "\myscript.png") ;changes the icon this script uses in the taskbar
start := Startup()
start.generate()
SD_Opt().checkCount()
; start.updateChecker()
start.updatePackages()
start.trayMen()
start.oldLogs()
start.adobeTemp()
start.adobeVerOverride()
start.updateAHK()
start.checkShortcuts()
start.__Delete()
;// so streamdeck scripts can receive premiere timeline coords
onMsgObj := ObjBindMethod(WM, "__recieveMessage")
OnMessage(0x004A, onMsgObj.Bind()) ; 0x004A is WM_COPYDATA
#HotIf ;code below here (until the next #HotIf) will work anywhere
#SuspendExempt ;this and the below "false" are required so you can turn off suspending this script with the hotkey listed below
#F1::settingsGUI()
;reloadHotkey;
#+r::reset.ext_reload() ;this reload script will attempt to reload all* active ahk scripts, not only this main script
;hardresetHotkey;
#+^r::reset.reset() ;this will hard rerun all active ahk scripts
#SuspendExempt false
;=============================================================================================================================================
;
; Premiere
;
;=============================================================================================================================================
#HotIf WinActive(editors.Premiere.winTitle) && !GetKeyState("F24")
;premselecttoolHotkey;
; SC03A & v::prem.selectionTool() ;getting back to the selection tool while you're editing text will usually just input a v press instead so this script warps to the selection tool on your hotbar and presses it
;---------------------------------------------------------------------------------------------------------------------------------------------
;
; Mouse Scripts
;
;---------------------------------------------------------------------------------------------------------------------------------------------
;mousedrag1Hotkey;
LAlt & XButton1:: ;this is necessary for the below function to work
;mousedrag2Hotkey;
XButton1::prem.mousedrag(KSA.handPrem, KSA.selectionPrem) ;changes the tool to the hand tool while mouse button is held ;check the various Functions scripts for the code to this preset & the keyboard shortcuts ini file for the tool shortcuts
#Include <Classes\Editors\Premiere_RightClick>