[C#] Need help with synchronization mutexes in hook EndScene menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Ferroks's Avatar Member
    Reputation
    8
    Join Date
    Dec 2012
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C#] Need help with synchronization mutexes in hook EndScene

    Please help with synchronization mutexes in sample hook EndScene for D3
    Code:
    int j = 0;
                            while (true && j<=5)
                            {
                                /* Мы дождались конца отрисовки кадра и вызова Present в игре */
                                if (eventPresentInvoked.WaitOne(_executorTimeout))
                                {
                                    //This code works
                                    //Clear();
                                    //AppendLine("push 0");
                                    //AppendLine("push {0}", memCaption.BaseAddress);
                                    //AppendLine("push {0}", memText.BaseAddress);
                                    //AppendLine("push 0");
                                    //AppendLine("call {0}", _memory["user32.dll"]["MessageBoxW"].BaseAddress);
                                    //AppendLine("retn");
                                    //_callee.Write(_callee.BaseAddress + 4);
                                    //_memory.Assembly.Inject(_asm.ToString(), _callee.BaseAddress + 4);
                                    //Console.WriteLine("Кадр");
                                    
                                    //This code does not work as you want. Need to operate at the end of each frame.
                                    var player = ActorCommonDataHelper.GetLocalAcd();
                                    var hz = ActorHelper.GetLocalActor();
                                    var hp = player.x188_Hitpoints;
                                    Console.WriteLine(hp);
                                    
                                    /* Говорим нашему исполнителю что мы впихнули код и он может его выполнить */
                                    eventInjectedCode.Set();
                                    eventPresentInvoked.WaitOne(_executorTimeout);
                                    j++;
                                }
                                else
                                {
                                    Console.WriteLine("Превышен таймаут завершения отрисовки кадра ({0} сек)!", _executorTimeout);
                                }
                            }
    Source Code
    SampleHookD3.rar

    [C#] Need help with synchronization mutexes in hook EndScene
  2. #2
    Ferroks's Avatar Member
    Reputation
    8
    Join Date
    Dec 2012
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my question is incorrect or incomprehensible or difficult?

    to see and test the code, a lot of action is not necessary.
    Need ustavnovlenaya D3, everything else in the example there. Start debugging.

Similar Threads

  1. Need help with sig
    By sudnrage111 in forum Community Chat
    Replies: 0
    Last Post: 09-24-2006, 02:12 AM
  2. Need help with weapon model edit!
    By Chewbbaca in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 09-20-2006, 07:02 PM
  3. need help with model editing experts please
    By sportstud10124 in forum Community Chat
    Replies: 0
    Last Post: 08-10-2006, 09:30 PM
  4. need help with shammy talents
    By jason in forum World of Warcraft General
    Replies: 5
    Last Post: 07-19-2006, 02:02 AM
  5. Need Help with WoW Glider
    By paypal in forum World of Warcraft General
    Replies: 2
    Last Post: 07-07-2006, 02:08 AM
All times are GMT -5. The time now is 05:49 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search