-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctionLauncherForStreamdeck.ahk
More file actions
36 lines (29 loc) · 1022 Bytes
/
Copy pathfunctionLauncherForStreamdeck.ahk
File metadata and controls
36 lines (29 loc) · 1022 Bytes
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
; This is used to call functions via elgato stream deck directly by parameters
; (using "BarRader Advanced Launcher"-Plugin)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#SingleInstance
#WinActivateForce
; include functions
#Include %A_ScriptDir%\includeFunctions.ahk
try {
param = %2%
%1%(param) ; you cannot use %-variables as function arguments, and if i write 2 ahk means the integer 2
ExitApp
} catch e {
ToolTip, e
ExitApp
}
; ---------- Helper Snippets ---------- ;
; would not be neccesary if the stream deck would have an AHK action
; and if i run these different actions within a multication it does not work sometimes...
helper(param) {
Switch param
{
Case "pp_presetCropZoomAndEdit":
pp_preset("CropZoom")
Send, +5 ; focus Effekteinstellungen
win_clickImage("effectLabel_Zuschneiden.png")
Return
}
}