WinGet, wowid, List, World of WarcraftToggleChat := 1~Enter::ToggleChat := !ToggleChatResetTime = 13000SetTimer, ChatOff, %ResetTime%ReturnChatOff:ToggleChat := 1SetTimer, ChatOff, OffReturn#IfWinActive, World of Warcraft~1::loop{GetKeyState, ScrollLockState, ScrollLock, Tif (ScrollLockState = "U") {break} else {if (ToggleChat := 1) {Send, 1Sleep, 15GetKeyState, State, 1, Pif state = U ;break}}}return
Right now I have my ToggleChat variable changing from 0 to 1 after enter is pressed twice, and resetting to 1 after 13 seconds has passed if enter is only pressed once. The entire upper part is good.
My problem is with the (ToggleChat :=1) check which isn't stopping the loop correctly if it's not 1. See what I missed?
Thanks.