Results 1 to 2 of 2
  1. #1
    theknig's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    1

    Exclamation What are the methods to triggering an action?

    I want to know which methods that allow you to do an action to a game while it's on the background.

    I know there is sending packets in online games.

    Is it possible to emulate a keypress to game in the background (without setforground) using PostMessage? or Injecting DLL

    Or every action is possible to be activated by modifying values in the memory? (I tried this some things work some were very hard to find)

    Or there is another way I haven't heard about?

    Looking forward to hear your opinions

    I have tried PostMessage but its not working for me.



    My Code:

    Code:
            
            [DllImport("user32.dll")]
            public static extern UIntPtr FindWindow(string lpClassName, string lpWindowName);
            [DllImport("user32.dll")]
            public static extern UIntPtr SendMessage(UIntPtr hWnd, uint Msg, UIntPtr wParam, UIntPtr lParam);
            [DllImport("user32.dll")]
            public static extern UIntPtr PostMessage(UIntPtr hWnd, uint Msg, UIntPtr wParam, UIntPtr lParam);
            static void Main(string[] args)
            {
                sendKeystroke((ushort)Keys.W);
            }
    
            public static void sendKeystroke(ushort k)
            {
                const uint WM_KEYDOWN = 0x0100;
                const uint WM_KEYUP = 0x0101;
                UIntPtr WindowToFind = FindWindow(null, "Warfare OnLine Client");
                UIntPtr result3 = PostMessage(WindowToFind, WM_KEYDOWN, ((UIntPtr)k), (UIntPtr)0b00000000000100010000000000000001);
                Thread.Sleep(1000);
                UIntPtr result4 = PostMessage(WindowToFind, WM_KEYUP, ((UIntPtr)k), (UIntPtr)0b11000000000100010000000000000001);
            }
    Let me know if there something I can change in my code to make PostMessage work or another method!

  2. #2
    Warte1969's Avatar
    Join Date
    Aug 2023
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by theknig View Post
    I want to know which methods that allow you to do an action to a game while it's on the background.

    I know there is sending packets in online games.avatar game

    Is it possible to emulate a keypress to game in the background (without setforground) using PostMessage? or Injecting DLL

    Or every action is possible to be activated by modifying values in the memory? (I tried this some things work some were very hard to find)

    Or there is another way I haven't heard about?

    Looking forward to hear your opinions

    I have tried PostMessage but its not working for me.



    My Code:

    Code:
            
            [DllImport("user32.dll")]
            public static extern UIntPtr FindWindow(string lpClassName, string lpWindowName);
            [DllImport("user32.dll")]
            public static extern UIntPtr SendMessage(UIntPtr hWnd, uint Msg, UIntPtr wParam, UIntPtr lParam);
            [DllImport("user32.dll")]
            public static extern UIntPtr PostMessage(UIntPtr hWnd, uint Msg, UIntPtr wParam, UIntPtr lParam);
            static void Main(string[] args)
            {
                sendKeystroke((ushort)Keys.W);
            }
    
            public static void sendKeystroke(ushort k)
            {
                const uint WM_KEYDOWN = 0x0100;
                const uint WM_KEYUP = 0x0101;
                UIntPtr WindowToFind = FindWindow(null, "Warfare OnLine Client");
                UIntPtr result3 = PostMessage(WindowToFind, WM_KEYDOWN, ((UIntPtr)k), (UIntPtr)0b00000000000100010000000000000001);
                Thread.Sleep(1000);
                UIntPtr result4 = PostMessage(WindowToFind, WM_KEYUP, ((UIntPtr)k), (UIntPtr)0b11000000000100010000000000000001);
            }
    Let me know if there something I can change in my code to make PostMessage work or another method!
    Hmm... Actually I have no idea. The problem looks a little complicated.
    Last edited by Warte1969; 08-28-2023 at 07:19 PM.

Similar Threads

  1. Replies: 3
    Last Post: 10-04-2015, 07:14 PM
  2. What are the VIP features?
    By momo66342 in forum Combat Arms Hacks & Cheats
    Replies: 3
    Last Post: 03-15-2009, 05:28 PM
  3. what are the risks
    By mightymole in forum Combat Arms Hacks & Cheats
    Replies: 2
    Last Post: 01-04-2009, 12:14 PM
  4. what are the hotkeys?
    By enk112 in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 10-13-2008, 02:08 PM
  5. What are the types? help please
    By sidnietje in forum WarRock - International Hacks
    Replies: 0
    Last Post: 05-30-2007, 08:25 AM