[C#] Simple class for sending chat commands (without memory editing) menu

User Tag List

Results 1 to 5 of 5
  1. #1
    siriuz's Avatar Active Member
    Reputation
    78
    Join Date
    Jun 2009
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C#] Simple class for sending chat commands (without memory editing)

    Although it isn't really related to Memory Editing, but I didn't found a better place to drop this.

    When I was looking for a proper method to send slash commands to a wow window, that should stay in background, I finally found this solution.

    It's stupid simple, because it does nothing else then copying your command to clipboard and then sending Enter -> Ctrl+V --> Enter to the wow window.
    But since it took me like ages to come to this idea, I'm sharing it here, so it could be useful for someone else.

    WoWSlashCommand.cs

    An Example would look like:
    Code:
    using System;
    using System.Diagnostics;
    using System.Threading.Tasks;
    using WoWChat;
    
    namespace TestChatCommand
    {
        class Program
        {
            [STAThread]
            static void Main(string[] args)
            {
                Process[] pr = Process.GetProcessesByName("wow");
                IntPtr hWnd_wow = Process.GetProcessById(pr[0].Id).MainWindowHandle;
                WoWSlashCommand.send(hWnd_wow, "/dance");
            }
        }
    }
    Last edited by siriuz; 02-08-2013 at 04:25 PM.

    [C#] Simple class for sending chat commands (without memory editing)
  2. #2
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why not simply use WM_CHAR to send text ?

  3. #3
    siriuz's Avatar Active Member
    Reputation
    78
    Join Date
    Jun 2009
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah you could do this in this way, too.
    But for longer commands its slower as you can watch how every single char is typed into the chatbox ... so this wasn't a solution that I had called 'proper'.
    It's maybe a matter of taste, but I personally didn't liked it
    Last edited by siriuz; 02-09-2013 at 10:37 AM.

  4. #4
    Valediction's Avatar Active Member
    Reputation
    37
    Join Date
    Jul 2012
    Posts
    48
    Thanks G/R
    8/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I remember having done something similar some time ago, but using WM_CHAR as proposed. Indeed, for long comands there was a slight delay. If you tried to type everything as fast as possible, and since it was a multibox project (which requires PostMessage), you'd actually end up missing some chars.

    This idea of using the keyboard might be better suited for speed, once basic synchronization is taken care of.

  5. #5
    Natrist's Avatar Member
    Reputation
    11
    Join Date
    Mar 2013
    Posts
    146
    Thanks G/R
    9/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So with this we could in theory send chat messages from an external program directly to the game?
    Awesome.

    That would be awesome for private servers.

Similar Threads

  1. [Help]VEH HOOK , how to raise exception without memory editing
    By demonguy in forum WoW Memory Editing
    Replies: 10
    Last Post: 12-14-2012, 01:51 PM
  2. [Lua Script] Chat Commands For Players, Buff me!
    By Confucius in forum WoW EMU General Releases
    Replies: 29
    Last Post: 07-13-2010, 03:20 AM
  3. Please read VERY SIMPLE thing for +++ rep
    By adtech21 in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 08-11-2007, 03:09 AM
  4. Simple trick for not dying
    By Fishbakes in forum World of Warcraft Exploits
    Replies: 18
    Last Post: 05-24-2007, 05:26 PM
All times are GMT -5. The time now is 10:59 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search