Catch the command in the chat menu

User Tag List

Results 1 to 9 of 9
  1. #1
    shadowKD's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    24
    Thanks G/R
    7/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Catch the command in the chat

    Hello everyone, I'm interested in how to catch a chat command from my program c# ?


    Example:
    You need to catch any command (/ hello or .hello) and that my bot responds to it

    Catch the command in the chat
  2. #2
    Wildbreath's Avatar Contributor
    Reputation
    162
    Join Date
    Feb 2012
    Posts
    121
    Thanks G/R
    2/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    look for FrameScript_RegisterFunction and FrameScript_UnregisterFunction

    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
    private delegate void LuaRegisterFunction(string szName, IntPtr pFunc);
    private static LuaRegisterFunction RegisterFunctionHandler;
    55 8b ec ? ? ? ? ? ? ? 6a ? ff 75 0c ? e8 ? ? ? ? ff 75


    [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
    private delegate void LuaUnregisterFunction(string szName);
    private static LuaUnregisterFunction UnregisterFunctionHandler;
    55 8b ec ? ? ? ? ? ? ? 56 e8 ? ? ? ? ff 75 08 56 e8

    x86

  3. Thanks shadowKD (1 members gave Thanks to Wildbreath for this useful post)
  4. #3
    tutrakan's Avatar Contributor
    Reputation
    134
    Join Date
    Feb 2013
    Posts
    175
    Thanks G/R
    124/52
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [WoW][4.3.4.15595] Info Dump Thread

    Alternatively, you can detour CSimpleEditBox::SetText - 0011A370 or listen for a net message SMSG_MESSAGECHAT.
    Last edited by tutrakan; 08-02-2017 at 04:37 PM.

  5. Thanks shadowKD (1 members gave Thanks to tutrakan for this useful post)
  6. #4
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1511
    Join Date
    May 2008
    Posts
    2,432
    Thanks G/R
    81/333
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by tutrakan View Post
    [WoW][4.3.4.15595] Info Dump Thread

    Alternatively, you can detour CSimpleEditBox::SetText - 0011A370 or listen for a net message SMSG_MESSAGECHAT.
    CSimpleEditBox::SetText will capture input from any text field, and capturing incoming chat packets means you've actually sent the text in chat. Why do either of these when you can just hook SendChatMessage?

  7. Thanks shadowKD, tutrakan (2 members gave Thanks to Jadd for this useful post)
  8. #5
    shadowKD's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    24
    Thanks G/R
    7/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jadd View Post
    CSimpleEditBox::SetText will capture input from any text field, and capturing incoming chat packets means you've actually sent the text in chat. Why do either of these when you can just hook SendChatMessage?

    Is it possible to catch the team in a chat? I thought only to send


    I need to get the team from the game, and not send))

  9. #6
    tutrakan's Avatar Contributor
    Reputation
    134
    Join Date
    Feb 2013
    Posts
    175
    Thanks G/R
    124/52
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jadd View Post
    CSimpleEditBox::SetText will capture input from any text field, and capturing incoming chat packets means you've actually sent the text in chat. Why do either of these when you can just hook SendChatMessage?
    Good point. I found this way long time ago when i was total noob in ME by scanning the chat line with Cheat Engine and finding out what writes to it.

    Edit: CSimpleEditBox::SetText does the job just fine.
    Last edited by tutrakan; 08-04-2017 at 10:43 PM.

  10. #7
    shadowKD's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    24
    Thanks G/R
    7/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you provide some sample code or template? I searched the entire forum and a few github projects, either I'm such a curve, or they do not exist))

  11. #8
    tutrakan's Avatar Contributor
    Reputation
    134
    Join Date
    Feb 2013
    Posts
    175
    Thanks G/R
    124/52
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by shadowKD View Post
    ... sample code or template? ...
    For what?

    This post of yours is contradictory:
    Originally Posted by shadowKD View Post
    Is it possible to catch the team in a chat? I thought only to send


    I need to get the team from the game, and not send))
    Last edited by tutrakan; 08-05-2017 at 02:11 PM.

  12. #9
    shadowKD's Avatar Member
    Reputation
    1
    Join Date
    Jul 2017
    Posts
    24
    Thanks G/R
    7/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I need a sample code to create my own command that will be processed by my bot

Similar Threads

  1. What's the deal with gold farmers posting account details in trade chat?
    By xHearts in forum World of Warcraft General
    Replies: 4
    Last Post: 07-23-2015, 05:17 AM
  2. Replies: 0
    Last Post: 08-18-2014, 07:53 PM
  3. Fix to the chat range in ArcEmu?
    By SpiXe in forum WoW EMU Questions & Requests
    Replies: 12
    Last Post: 04-07-2013, 08:19 AM
  4. GM Commands, in the wow console!
    By wowowns in forum WoW EMU Questions & Requests
    Replies: 10
    Last Post: 01-08-2010, 04:39 PM
  5. Quite possibly the most amazing command in the game.
    By GhoSt17 in forum World of Warcraft Exploits
    Replies: 37
    Last Post: 08-09-2007, 07:52 PM
All times are GMT -5. The time now is 11:44 AM. 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