Just use
send(socket, hello.c_str(), hello.size(), 0);
And maybe look at for loops. You don't need to write socket[i]. The code will still execute 5 times.
[Help]C# Postmessage send string 05/03/2012 - .NET Languages - 13 Replies hey mates,
need some help i know how to send keys:
PostMessage(p.MainWindowHandle, WM_KEYDOWN, (int)Keys.A,1);
PostMessage(p.MainWindowHandle, WM_KEYUP, (int)Keys.A,1);
but i want to send a string to the window i tryed :
foreach (char item in text)
{
PostMessage(p.MainWindowHandle,WM_KEYDOWN,Convert. Int32(item), 1);
PostMessage(p.MainWindowHandle, WM_KEYUP, Convert.Int32(item), 1);
Play sound via Packet Send?? [Question String Packet] 07/14/2010 - CO2 Private Server - 5 Replies Yow im trying to figure out why i cant play music with the string packet
What im doin is;
MyChar.Client.SendPacket(Game.Packet.String(MyCha r.UID, 20, Splitter));
My Packet is:
public byte String(long CharId, byte Type, string name)