Skip to content

Commit

Permalink
- removed debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
GenesisFR committed May 2, 2021
1 parent 7441468 commit 08246b8
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions KeyToggles.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand All @@ -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

Expand Down

0 comments on commit 08246b8

Please sign in to comment.