Trade Feedbacks
I was trying to implement Anti AFK and i've just been running into trouble, i'm currently using
and calling it every 15 seconds, it stops the game from saying "You are now AFK: Away from keyboard", but after 7.5 minutes it starts to log me out for inactivity, am i missing something?Code:public void UpdateLastHardwareAction() { Random Rand = new Random(); IntPtr pLastHardwareAction = (IntPtr)0x010A1B64; IntPtr pInputEvent = (IntPtr)0x81CEA0; Point CursorPos = Cursor.Position; Process.CallFunction<Int32>(pInputEvent, (IntPtr)10, IntPtr.Zero, (IntPtr)Rand.Next(800), (IntPtr)Rand.Next(600), IntPtr.Zero; Process.CallFunction<Int32>(pInputEvent, (IntPtr)10, IntPtr.Zero, (IntPtr)CursorPos.X, (IntPtr)CursorPos.Y, IntPtr.Zero); //Process.WriteValue(pLastHardwareAction, GetTimestamp()); }
i know that InputEvent is 100% working and i also know that it is already updating pLastHardwareAction
Last edited by bigtimt; 09-13-2009 at 06:19 PM.
Trade Feedbacks
Trade Feedbacks
no matter which one of those i do, It stops me from going AFK, but i still get logged out for inactivity

Trade Feedbacks
[edit (because my reading apprehension failed)]
Unless your GetTimestamp is based off of WoW's timestamp, you are probably sending a timestamp just slightly lower than what you need to stay logged in. You should try calling:
0x81EE60 - WoW's "GetTimestamp" function. 3.2.0
And I wouldn't write to pLastHardwareAction anymore if I were you.
Last edited by vulcanaoc; 09-13-2009 at 10:41 PM.
Trade Feedbacks
Trade Feedbacks
Why wouldn't you write to LastHardwareAction? I don't play WoW anymore or keep up with much of the changes but afaik there's nothing in Warden that would lead me to believe writing to that address is a bad idea. On the contrary, you should write to it every time you perform an action that would usually require a hardware event, otherwise Warden would be able to see that you've been fighting mobs for 15 minutes but have not generated a single hardware event (keystroke, mouse movement, etc).

Trade Feedbacks
Trade Feedbacks

Trade Feedbacks
Of course, you're right- there's no present danger in writing to it. But a few public (and private) bots do write to it, my much-hated auction bot being one of them.
Trade Feedbacks
Incase anyone was wondering i solved my own problem, since none of the above answers solved it i just did this
Code:WriteValue(pLastHardwareAction, int.MaxValue);
Trade Feedbacks
Bookmarks