11; OS Version ...: Windows 10+ (Previous versions tested working on Win7)
22; Requires AutoHotkeyU32
3- ; @Ahk2Exe-SetName Nova Macros Client
4- ; @Ahk2Exe-SetDescription Nova Macros for TouchScreen and Remote Control
5- ; @Ahk2Exe-SetVersion 3.8.6
3+ ; @Ahk2Exe-SetName LibreDeck Client
4+ ; @Ahk2Exe-SetDescription LibreDeck for TouchScreen and Remote Control
5+ ; @Ahk2Exe-SetVersion 3.8.7
66; @Ahk2Exe-SetCopyright Copyright (c) 2025`, elModo7 - VictorDevLog
7- ; @Ahk2Exe-SetOrigFilename Nova Macros Client.exe
7+ ; @Ahk2Exe-SetOrigFilename LibreDeck Client.exe
88; INITIALIZE
99; *******************************
1010/*
@@ -51,7 +51,7 @@ SetBatchLines, -1
5151#Include <talk>
5252#Include <plugin_system>
5353rutaSplash = ./ resources/ img/ splash.png
54- global ClientVersionNumber := " 3.8.6 "
54+ global ClientVersionNumber := " 3.8.7 "
5555global ClientVersion := ClientVersionNumber " - elModo7 / VictorDevLog " A_YYYY
5656SplashScreen(rutaSplash, 3000 , 545 , 160 , 0 , 0 , true )
5757global EsVisible = true
@@ -127,17 +127,19 @@ contextcolor(color:=2) ; change the number here from the list above if you want
127127; TRAY MENU
128128; *******************************
129129Menu , tray , NoStandard
130- Menu , tray , tip , Nova Macros Client v%ClientVersionNumber%
130+ Menu , tray , tip , LibreDeck Client v%ClientVersionNumber%
131+ Menu , tray , add , Run LibreDeck server, runServer
132+ Menu tray , Icon , Run LibreDeck server, .\resources\img\ico\libredeck.ico
131133Menu , tray , add , Hide , ToggleHide
132134Menu tray , Icon , Hide , .\resources\img\ico\windows\cut_visibility.ico
133135Menu , tray , add , Set Editor Path, CambiarRutaEditor
134136Menu tray , Icon , Set Editor Path, .\resources\img\ico\windows\edit2.ico
135137Menu tray , add , Set Start Window Possition, setStartPossition
136138Menu tray , Icon , Set Start Window Possition, .\resources\img\ico\windows\window_possition.ico
137- Menu tray , add , Backup Nova Macros Folder (* .7z), generateBackup
138- Menu tray , Icon , Backup Nova Macros Folder (* .7z), .\resources\img\ico\windows\compressed_folder.ico
139- Menu tray , add , Open Nova Macros Folder, openNovaMacrosFolder
140- Menu tray , Icon , Open Nova Macros Folder, .\resources\img\ico\windows\folder.ico
139+ Menu tray , add , Backup LibreDeck Folder (* .7z), generateBackup
140+ Menu tray , Icon , Backup LibreDeck Folder (* .7z), .\resources\img\ico\windows\compressed_folder.ico
141+ Menu tray , add , Open LibreDeck Folder, openLibreDeckFolder
142+ Menu tray , Icon , Open LibreDeck Folder, .\resources\img\ico\windows\folder.ico
141143Menu , tray , add
142144Menu , tray , add , Network Settings, crearGuiNetworkSettings
143145Menu tray , Icon , Network Settings, .\resources\img\ico\windows\network2.ico
@@ -336,7 +338,7 @@ Gui, Add, Text, x0 y543 w1024 h59 +BackgroundTrans cWhite Center GMoverVentana v
336338Gui Add , Picture , x0 y0 w1024 h600 vbackgroundImg, % btnPics[" background.png" ] ? " HBITMAP:*" btnPics[" background.png" ] : ""
337339EstablecerPagina(0 )
338340Gui , SplashScreen:Destroy
339- Gui Show , % " w1024 h600 x" conf.x_Inicial " y" conf.y_Inicial, Nova Macros Client ; Do NOT change the name, it's used for notifications amongst other stuff
341+ Gui Show , % " w1024 h600 x" conf.x_Inicial " y" conf.y_Inicial, LibreDeck Client ; Do NOT change the name, it's used for notifications amongst other stuff
340342if (conf.miniClient)
341343{
342344 conf.miniClient := 0
@@ -358,14 +360,14 @@ Return
358360ToggleHide :
359361if EsVisible
360362{
361- WinHide , Nova Macros Client
363+ WinHide , LibreDeck Client
362364 Menu , tray , Rename , Hide , Show
363365 EsVisible = 0
364366}
365367else
366368{
367- WinShow , Nova Macros Client
368- WinActivate , Nova Macros Client
369+ WinShow , LibreDeck Client
370+ WinActivate , LibreDeck Client
369371 Menu , tray , Rename , Show , Hide
370372 EsVisible = 1
371373}
@@ -447,13 +449,13 @@ ComprobarExistenciaBoton()
447449SiempreVisible :
448450 if (conf.siempreVisible)
449451 {
450- Winset , AlwaysOnTop , Off , Nova Macros Client
452+ Winset , AlwaysOnTop , Off , LibreDeck Client
451453 conf.siempreVisible := 0
452454 Menu ContextMenuGenerico, UnCheck , Always on Top
453455 }
454456 else
455457 {
456- Winset , AlwaysOnTop , , Nova Macros Client
458+ Winset , AlwaysOnTop , , LibreDeck Client
457459 conf.siempreVisible := 1
458460 Menu ContextMenuGenerico, Check , Always on Top
459461 }
@@ -463,12 +465,12 @@ return
463465SetSiempreVisibleInicial :
464466 if (! conf.siempreVisible)
465467 {
466- Winset , AlwaysOnTop , Off , Nova Macros Client
468+ Winset , AlwaysOnTop , Off , LibreDeck Client
467469 Menu ContextMenuGenerico, UnCheck , Always on Top
468470 }
469471 else
470472 {
471- Winset , AlwaysOnTop , , Nova Macros Client
473+ Winset , AlwaysOnTop , , LibreDeck Client
472474 Menu ContextMenuGenerico, Check , Always on Top
473475 }
474476return
@@ -561,7 +563,7 @@ if conf.miniClient
561563 GuiControl , MoveDraw, wifi_icon, x960 y536 w64 h64
562564 GuiControl , MoveDraw, settings_icon, x960 y0 w64 h64
563565 GuiControl , MoveDraw, backgroundImg, x0 y0 w1024 h600
564- Gui Show , w1024 h600, Nova Macros Client
566+ Gui Show , w1024 h600, LibreDeck Client
565567}
566568else
567569{
592594 GuiControl , MoveDraw, wifi_icon, x353 y168 w32 h32
593595 GuiControl , MoveDraw, settings_icon, x353 y0 w32 h32
594596 GuiControl , MoveDraw, backgroundImg, x0 y0 w385 h200
595- Gui , Show , w385 h200, Nova Macros Client
597+ Gui , Show , w385 h200, LibreDeck Client
596598}
597599gosub , setWifiIcon ; Resets the wifi icon without loosing quality bug on resize
598600DllCall (" LockWindowUpdate" , " UInt" , 0 )
@@ -1077,7 +1079,7 @@ Exit:
10771079; *******************************
10781080~Right ::
10791081 SetTitleMatchMode , 3
1080- IfWinActive , Nova Macros Client ahk_class AutoHotkeyGUI
1082+ IfWinActive , LibreDeck Client ahk_class AutoHotkeyGUI
10811083 {
10821084 gosub , RightPage
10831085 }
@@ -1086,7 +1088,7 @@ return
10861088
10871089~Left ::
10881090 SetTitleMatchMode , 3
1089- IfWinActive , Nova Macros Client ahk_class AutoHotkeyGUI
1091+ IfWinActive , LibreDeck Client ahk_class AutoHotkeyGUI
10901092 {
10911093 gosub , LeftPage
10921094 }
@@ -1095,7 +1097,7 @@ return
10951097
10961098~^Right ::
10971099 SetTitleMatchMode , 3
1098- IfWinActive , Nova Macros Client ahk_class AutoHotkeyGUI
1100+ IfWinActive , LibreDeck Client ahk_class AutoHotkeyGUI
10991101 {
11001102 gosub , RightPage ; Incremento de 10 en 10
11011103 }
@@ -1104,7 +1106,7 @@ return
11041106
11051107~^Left ::
11061108 SetTitleMatchMode , 3
1107- IfWinActive , Nova Macros Client ahk_class AutoHotkeyGUI
1109+ IfWinActive , LibreDeck Client ahk_class AutoHotkeyGUI
11081110 {
11091111 gosub , LeftPage ; Decremento de 10 en 10
11101112 }
@@ -1269,9 +1271,9 @@ DeleteButtonFunction:
12691271return
12701272
12711273setStartPossition :
1272- if (WinExist (" Nova Macros Start Pos" ))
1274+ if (WinExist (" LibreDeck Start Pos" ))
12731275 {
1274- WinActivate , Nova Macros Start Pos
1276+ WinActivate , LibreDeck Start Pos
12751277 }
12761278 else
12771279 {
@@ -1281,7 +1283,7 @@ setStartPossition:
12811283 Gui startPos:Add , Edit , x72 y40 w120 h21 vy_Inicial + Center + Number , % conf.y_Inicial
12821284 Gui startPos:Add , Button , x112 y72 w80 h23 gsaveStartPossition, Set and Save
12831285 Gui startPos:Add , Button , x8 y72 w80 h23 ggetCurrentPos, Get current
1284- Gui startPos:Show , w200 h103, Nova Macros Start Pos
1286+ Gui startPos:Show , w200 h103, LibreDeck Start Pos
12851287 }
12861288return
12871289
@@ -1292,11 +1294,11 @@ saveStartPossition:
12921294 conf.y_Inicial := y_Inicial
12931295 gosub , guardarConfig
12941296 Gui , startPos:Destroy
1295- WinMove , Nova Macros Client,, % x_Inicial, % y_Inicial
1297+ WinMove , LibreDeck Client,, % x_Inicial, % y_Inicial
12961298return
12971299
12981300getCurrentPos :
1299- WinGetPos , x, y,,, Nova Macros Client
1301+ WinGetPos , x, y,,, LibreDeck Client
13001302 GuiControl , startPos:, x_Inicial, % x
13011303 GuiControl , startPos:, y_Inicial, % y
13021304return
@@ -1398,9 +1400,9 @@ OnTcpRecv(this)
13981400}
13991401
14001402crearGuiNetworkSettings :
1401- if (WinExist (" Nova Macros Network Settings" ))
1403+ if (WinExist (" LibreDeck Network Settings" ))
14021404 {
1403- WinActivate , Nova Macros Network Settings
1405+ WinActivate , LibreDeck Network Settings
14041406 }
14051407 else
14061408 {
@@ -1417,8 +1419,8 @@ crearGuiNetworkSettings:
14171419 Gui networkSettings:Add , Button , x16 y136 w80 h23 gSaveNetworkConfig, SAVE CONFIG
14181420 Gui networkSettings:Add , Button , x104 y136 w80 h23 gConnectToServer, CONNECT
14191421 Gui networkSettings:Add , Text , x0 y168 w214 h2 + 0x10 ; Separator
1420- Gui networkSettings:Add , Text , x8 y169 w191 h23 + Center + 0x200 vNetworkStatusInfo, Nova Macros - Network Config
1421- Gui networkSettings:Show , w208 h192, Nova Macros Network Settings
1422+ Gui networkSettings:Add , Text , x8 y169 w191 h23 + Center + 0x200 vNetworkStatusInfo, LibreDeck - Network Config
1423+ Gui networkSettings:Show , w208 h192, LibreDeck Network Settings
14221424 }
14231425Return
14241426
@@ -1580,7 +1582,7 @@ setButtonIcon(buttonId, imagePathOrName) {
15801582 GuiControl , MoveDraw, Boton%buttonId%, w130 h130
15811583}
15821584
1583- ; Notification examples at: plugins: notification_examples.ahk & backup_nova_macros .ahk
1585+ ; Notification examples at: plugins: notification_examples.ahk & backup_libredeck .ahk
15841586showIncomingNotification :
15851587 try {
15861588 incomingNotification := ParseJson(incomingNotification)
@@ -1673,7 +1675,7 @@ vaciarMemoriaIconos:
16731675return
16741676
16751677generateBackup :
1676- Run , % " "" " A_ScriptDir " \lib\autohotkey.exe"" "" " A_ScriptDir " \plugins\backup_nova_macros .ahk"" "
1678+ Run , % " "" " A_ScriptDir " \lib\autohotkey.exe"" "" " A_ScriptDir " \plugins\backup_libredeck .ahk"" "
16771679return
16781680
16791681changeReactiveSetting :
@@ -1703,9 +1705,9 @@ setReactiveService:
17031705return
17041706
17051707setPageByActiveProgram :
1706- ; Only trigger changes and app check when Nova Macros is visible
1708+ ; Only trigger changes and app check when LibreDeck is visible
17071709 DetectHiddenWindows , Off
1708- if (WinExist (" Nova Macros Client" ))
1710+ if (WinExist (" LibreDeck Client" ))
17091711 {
17101712 WinGet , activeProcess, ProcessName , A
17111713 if (previousActiveProcess ! = activeProcess && activeProcess ! = A_ScriptName ){
@@ -1816,10 +1818,10 @@ bindFolderToProgramClose:
18161818return
18171819
18181820showAboutScreen :
1819- showAboutScreen(" Nova Macros v" ClientVersionNumber, " A multi-purpose macro pannel tailored to be used both in single screen setups, multi screen, touch support and multi machine setups via sockets." )
1821+ showAboutScreen(" LibreDeck v" ClientVersionNumber, " A multi-purpose macro pannel tailored to be used both in single screen setups, multi screen, touch support and multi machine setups via sockets." )
18201822return
18211823
1822- openNovaMacrosFolder :
1824+ openLibreDeckFolder :
18231825 Run , % A_ScriptDir
18241826return
18251827
@@ -1838,4 +1840,8 @@ reloadPlugins:
18381840 }
18391841return
18401842
1843+ runServer :
1844+ Run , LibreDeck Server.exe
1845+ return
1846+
18411847#Include plugins/plugin_list.ahk
0 commit comments