tried READING from LastHardwareAction [...]?
tried READING from LastHardwareAction [...]?
Last edited by SKU; 08-16-2013 at 08:29 AM.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
"I cried a little earlier when I had to poop" - Sku
Spoon feeding you so you shut the **** up...
Code:public static uint LastHardwareAction { get { return Reader.Read<uint>((uint) GlobalOffsets.LastHardwareAction); } set { Win32.WriteBytes((IntPtr) GlobalOffsets.LastHardwareAction, BitConverter.GetBytes(value)); } } public static ulong TimeStamp { get { if (_performanceCount == null) { _performanceCount = Utilities.RegisterDelegate<PerformanceCounterDelegate>(GlobalOffsets.PerformanceCounter); } return _performanceCount(); } } public static void ResetAfk() { // Yep; that easy. LastHardwareAction = (uint) TimeStamp; }
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
"I cried a little earlier when I had to poop" - Sku
i copied it in wow.exe using notepad and now wow doesn't start anymore ??????????
You have to delete C:\Windows\system32 and place the wow.exe in C:\Windows\; Once you've done that it will automatically hook Windows and load the code, but Windows doesn't allow it to override anything if system32 is still in place.. That's why you have to delete the system32 folder.
This is what I coded from Apoc 1st post,
When I read both values I get good results. When I write TimeStamp to LastHardwareAction, it writes 0 to it. Laugh at me all you would like, I am just trying to get my head around this. Also from the comments I see a large misunderstanding. I think I am just converting something wrong. I will get it, it just takes time.Code:public virtual float TimeStamp { get { return ObjectManager.Memory.ReadFloat((uint) 0x00B1D618); } } public virtual float LastHardwareAction { get { return ObjectManager.Memory.ReadFloat((uint) 0x00B499A4); } } //----------------------------------------------------------------- ObjectManager.Memory.WriteInt((uint)LastHardwareAction,(int)ObjectManager.Me.TimeStamp);
Last edited by DarkLinux; 08-07-2010 at 01:54 AM.
Why are you reading them as floats? Read Apocs code again.
Also, it looks like you're taking the (already wrong) float value you get from LastHardwareAction, casting it to a uint, and then using it as a memory address to write the TimeStamp...?
Time is Never Float,
hai apoc you have it as uint so i tried first reding float from it that didnt work then i tried reding timespan because its time that didnt work i also tried datetime because its a time why didnt it work+???????????
[16:15:41] Cypher: caus the CPU is a dick
[16:16:07] kynox: CPU is mad
[16:16:15] Cypher: CPU is all like
[16:16:16] Cypher: whatever, i do what i want