AFK Quit

This addon will call ForceQuit() right before you are supposed to be logged out for being Idle. This will return you back to your OS instead of going to the character selection screen and then being dropped back to the login screen.

The idea is to avoid running your graphics card at 100% GPU all night when you fall asleep without logging out. It also allows your OS to start its screen saver or power down the monitor (and other hardware devices)

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Talyrius Talyrius Mar 04, 2011 at 13:13 UTC - 0 likes

    You most likely were just disconnected from the game due to a network connectivity issue. An addon cannot account for such an occurrence.

  • Avatar of angrysteel angrysteel Feb 21, 2011 at 07:35 UTC - 0 likes

    Using version R: 2.0, i am 50-50 with the addon actually working. Out of 4 afks only 2 of them completely shut the game down. The other 2 times the game shut down as normal and was left at the login screen.

  • Avatar of tlundse tlundse Jan 07, 2011 at 18:45 UTC - 0 likes


  • Avatar of Talyrius Talyrius Jan 07, 2011 at 05:14 UTC - 0 likes

    I've confirmed this works in and out of cities.

  • Avatar of tlundse tlundse Jan 07, 2011 at 04:35 UTC - 0 likes

    I was playing around with that in an earlier version, but it only worked outside of a city. When in a city, that message never appeared.

    Did you try this in a city, or outside?

  • Avatar of Talyrius Talyrius Dec 30, 2010 at 21:02 UTC - 0 likes

    I was able to do some testing today and I discovered that my previous code wouldn't work because the CAMP StaticPopup is the same as the one presented to you when you do a normal logout.

    However, I found a solution. When the system message that warns you are about to logged out is sent, I triggered a ForceQuit(). I've tested this.

    local f = CreateFrame("Frame")
    f:SetScript("OnEvent", function(self, event, arg1, ...)
    	if event == "CHAT_MSG_SYSTEM" and arg1 == IDLE_MESSAGE then
  • Avatar of Talyrius Talyrius Dec 30, 2010 at 09:08 UTC - 0 likes

    Perhaps this will work?

    hooksecurefunc("StaticPopup_Show", function(popup)
    	-- triggered by the PLAYER_CAMPING event
    	if popup == "CAMP" then
  • Avatar of Talyrius Talyrius Dec 29, 2010 at 17:39 UTC - 0 likes

    A dialog window pops up to warn you right before the game logs you out. I would imagine that it would be trivial to watch for this window instead of creating your own timer. This would prevent the problems with the AFK CVar.

    Last edited Dec 29, 2010 by Talyrius
  • Avatar of alienns alienns Dec 21, 2010 at 20:05 UTC - 0 likes

    Yea, this is nice addon, since my VGA almost burned at WoW logon screen once.



Date created
Dec 18, 2010
Last update
Oct 15, 2014
Development stage
  • enUS
All Rights Reserved
Curse link
AFK Quit
Recent files
  • A: r20 for 6.0.2 Oct 15, 2014
  • R: 2.5 for 5.4.2 Jan 25, 2014
  • A: r18 for 5.4.2 Jan 25, 2014
  • R: 2.4 for 5.1.0 Dec 02, 2012
  • A: r16 for 5.1.0 Dec 02, 2012