[CoD] Extern Chat Nachricht senden

Discussion in 'Source Code' started by Cre3per, May 6, 2014.

  1. Cre3per

    Cre3per Addicted Member Inventar

    Joined:
    Oct 22, 2012
    Messages:
    697
    Likes Received:
    2
    Code:
    VOID SendChatMessage(char* Text)
    {
    	//Open the Chat
    	WriteInt(ADR_CHAT_OPEN, 32);
     
    	//Set the text Message
    	std::string tmp = Text;
    	WriteString(ADR_CHAT_TEXT, tmp);
     
    	//Send Enter
    	PostMessage(DD9.TargetHWND, WM_KEYDOWN, VK_RETURN, VK_RETURN);
    	PostMessage(DD9.TargetHWND, WM_KEYUP, VK_RETURN, VK_RETURN);
    }
     
  2. hoschi111

    hoschi111 Administrator Staff Member Administrator

    Joined:
    Dec 19, 2017
    Messages:
    1,147
    Likes Received:
    2
    Adressen dazu?
    Und was ist, wenn man gleichzeitig WASD drückt, wenn die Adresse den Chat öffnet?
     
  3. Cre3per

    Cre3per Addicted Member Inventar

    Joined:
    Oct 22, 2012
    Messages:
    697
    Likes Received:
    2
    Such nach 0 und 32 für CHAT_OPEN
    CHAT_TEXT solltest du auch ohne Hilfe finden ^^
    Ich habe mit WASD etc. keine Probleme. Allerdings hat sich am Anfang immer mal was reingemogelt
     
  4. hoschi111

    hoschi111 Administrator Staff Member Administrator

    Joined:
    Dec 19, 2017
    Messages:
    1,147
    Likes Received:
    2
    Wenn man die Adressen selber gefunden hätte, bräuchte man den Source nicht, weil diese Technik dann ja schon beherrscht wird.

    Sonst hätte ja auch ne einfache Textbeschreibung gereicht.
     
  5. Skyfail

    Skyfail Administrator Staff Member Administrator Inventar

    Joined:
    Mar 21, 2013
    Messages:
    792
    Likes Received:
    0
    Auf PostMessage wäre sicher nicht jeder gekommen
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.