Im2be / afk-countdown

Shows you exactly how many seconds it will take before you log out of RuneLite due to inactivity.
BSD 2-Clause "Simplified" License
0 stars 1 forks source link

Incorrectly resets the afk countdown timer #6

Open and-yo-u opened 1 year ago

and-yo-u commented 1 year ago

The AFK countdown timer is being incorrectly reset when moving the cursor over a client when they are either focused and unfocused. This won't prevent you from logging out

Im2be commented 1 year ago

Please provide me with an video/GIF on how to reproduce this + proof that it actually logs you out due to inactivity even though the timer is not at 0:00.

The reason I ask this is because I don't do any focus/unfocus checks. The code literally just asks the client "how many game-ticks of inactivity have there been on the mouse/keyboard?" and extrapolates further from there.

Breyos commented 11 months ago

This issue is still present. Whenever I move my mouse into or out of the active window it resets the timer to 5 minutes.

redturtlez commented 5 months ago

has anyone here tested this? i went ahead and tested it myself and can verify this plugin is working CORRECTLY. just hovering runelite every couple mins unfocussed has prevented me from disconnecting for 15+ minutes on a 5 minute timer, and if i dont hover it, it will disconnect as the plugin timer hits 0. i think this issue can be closed