From 2a8fb28d7fb3f858ec47bc58491a55ede3ce9841 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 18 Apr 2023 18:39:01 +0200 Subject: [PATCH] AHK Scripts repariert. --- configs/autohotkey/OpenVSC.ahk | 6 +++--- configs/autohotkey/Sit.ahk | 22 ++++++---------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/configs/autohotkey/OpenVSC.ahk b/configs/autohotkey/OpenVSC.ahk index d28a00d..6c650d3 100644 --- a/configs/autohotkey/OpenVSC.ahk +++ b/configs/autohotkey/OpenVSC.ahk @@ -1,7 +1,7 @@ #Requires AutoHotkey v2.0 #Include Lib.ahk #NoTrayIcon -;Mit Strg, Alt + P wird der aktuell Ordner im Terminal geöffnet. +;Mit Alt + C wird der aktuell Ordner im Terminal geöffnet. !c:: { @@ -9,8 +9,8 @@ HotIfWinActive "ahk_class CabinetWClass" { WinID := WinGetID("ahk_class CabinetWClass") Path := GetPath(WinID) - code := A_AppData . "\Local\Programs\Microsoft VS Code\Code.exe" - Run 'code "-n" Path' + code := "C:\Users\" . A_UserName . "\Appdata\Local\Programs\Microsoft VS Code\Code.exe" + run '"' code '" -n "' Path '"' } Return diff --git a/configs/autohotkey/Sit.ahk b/configs/autohotkey/Sit.ahk index 2f4c623..3e97018 100644 --- a/configs/autohotkey/Sit.ahk +++ b/configs/autohotkey/Sit.ahk @@ -1,21 +1,11 @@ #Requires AutoHotkey v2.0 -ToggleMessageCount := 1 -SetTimer ToggleMessage(ToggleMessageCount), 1800000 +SetTimer ToggleMessage, 1800000 -ToggleMessage(ToggleMessageCount) -{ - If (ToggleMessageCount / 2 = 0) - { - MsgBox "Do one thing" - } - Else - { - MsgBox "Do another thing" - } - ToggleMessageCount := ToggleMessageCount + 1 - Return ToggleMessageCount +toggleMessage() { + Static on := False + If on := !on + MsgBox "Du hast genug gesessen, bitte aufstehen!" + Else MsgBox "Jetzt darfst du dich wieder hinsetzen;)" } - -