From 08246b85d41ba9024734ff8471ce2a9be9f03d92 Mon Sep 17 00:00:00 2001 From: David <3614449+GenesisFR@users.noreply.github.com> Date: Sun, 2 May 2021 05:26:43 -0400 Subject: [PATCH] - removed debug code --- KeyToggles.ahk | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/KeyToggles.ahk b/KeyToggles.ahk index 91f735f..da16abd 100644 --- a/KeyToggles.ahk +++ b/KeyToggles.ahk @@ -36,12 +36,6 @@ IniRead, crouchKey, %configFileName%, Keys, crouchKey, LCtrl IniRead, sprintKey, %configFileName%, Keys, sprintKey, LShift IniRead, isDebug, %configFileName%, Debug, isDebug, 0 -if (isDebug) -{ - arrValues := [windowName, isAimToggle, isCrouchToggle, isSprintToggle, aimKey, crouchKey, sprintKey, hookDelay] - MsgBox, % Format("windowName: {}`nisAimToggleEnabled: {}`nisCrouchToggleEnabled: {}`nisSprintToggleEnabled: {}`naimKey: {}`ncrouchKey: {}`nsprintKey: {}`nhookDelay: {}", arrValues*) -} - ; Make the hotkeys active only for a specific window WinWaitActive, %windowName% Sleep, %hookDelay% @@ -60,23 +54,14 @@ SetTimer, SetTogglesOnFocus, 1000 return aimLabel: -if (isDebug) - MsgBox % "Aim " . (!isAiming ? "pressed" : "released") - Aim(!isAiming) return crouchLabel: -if (isDebug) - MsgBox % "Crouch " . (!isCrouching ? "pressed" : "released") - Crouch(!isCrouching) return sprintLabel: -if (isDebug) - MsgBox % "Sprint " . (!isSprinting ? "pressed" : "released") - Sprint(!isSprinting) return