Hi.
Does anyone know how to send text or single characters to opened chat window (preferable WinApi function)?
I tried SendMessage, PostMessage, keybd_event (works fine in loging screen but not in chat).
I'd be grateful for any help or hint.
EDIT:
Actually keybd_event works in this case (probably SendInput also).
Problem occured because of different behaviour of WinApi function in Delphi and C#.
It's not an issue of knowing how to send packets - just don't want to interfere in game.
Only reading memory and responding by simulating player with WinApi keyboard and mouse functions.
@WalrossGreat
I'm using WinApi's VkKeyScan to get the numeric code of a character with combination of PostMessage or keybd_event (SendInput is too complicated for now :P )
PostMessage and SendMessage function can send keycodes to nt window but not the focused element like chat or login edit boxes - probably something to do with directX and openGL in game interface. Maybe just finding handle to speific controll would do the trick but this is too much work :P
By PostMessage or SendMessage and keycodes I use ingame keyboardcontroled features like opening specific windows, using skills etc.
keybd_event and SendInput send key to active focused controll instead of entire window, so they can be used to send text (char by char from string as a char table).
Downside of this method is that the nt window must be visible and focused during sending text - for me not an issue, I don't require it to work on minimized window.
Ye, you're right, but if you use the function, you'll see own message in chat.
(And it's just easier if you write a function like sendPacket("say MESSAGE"))
PWI - Guide for SENDING Chat messages [C# and AutoIt examples included] 09/16/2013 - PW Hacks, Bots, Cheats, Exploits - 32 Replies Ok, so some time ago I posted a guide for finding the offsets to read chat messages from within the game, which sparked some interest and seems to have proved useful in a couple of bots for PM detection.
Around the time I figured that stuff out, I had tried a few times to work out how to send messages too, but never quite got there. Well, it seems taking a short break has helped because I've finally figured it out http://www.elitepvpers.com/forum/images/smilies/bi ggrin.gif
Sure,...
Chat in Farbigen Text 09/17/2012 - Metin2 Private Server - 0 Replies Hey
Ich wollt hier mal nachfragen, wie füge ich die Quest ein dass ich im Chat farbig schreiben kann ? Wo Glas der einsicht benötigt wird?
Wenn ich SuFu benutze kommt nur was wo es was mit auftragsquests zu tuen hat<.<
Hoffe dass mir jemand ein release davon postet :D
[Question] Sending text to CO's chat lines 09/13/2008 - Conquer Online 2 - 2 Replies How would I send text to the chat or to the red system text in the upper left corner of the screen? Would I have to send my own packet?
Basically I want to:
Hit a hotkey
Read in the number of kills I have for demon exterminator.
Have the number of kills left displayed in the chat.
This way, rather than click "Items" and put my mouse over it, (which requires stopping and blocking half your screen) I can just hit Alt-A or something convinient for where I place my hand to show my...