Thegirl 0 Posted August 23, 2010 Hi I'm up to making an irc client. I can type from my client to the irc server, but, I cant read what people types to me. This is my code: http://pastebin.com/Ma5BcGxk Does any of you now, which function I should use, so I can output data from my socket to the edit window ? I know it will look wierd, but I know how to remove PRIVMSG etc. so I only output the message, and sender I hope this makes sence, english is not my first language, sorry then Bedst regards Thegirl Thanks Share this post Link to post Share on other sites
4ggr35510n 0 Posted August 24, 2010 Have you tried...GUICtrlSetData? 3rd argument let you insert data to edit at certain position. Share this post Link to post Share on other sites
Thegirl 0 Posted August 24, 2010 hi yea, I have tried that, but when peps type, I can only see it in my client in very short time, and then it disapire again. I will have it, like a regular irc-client. Thanks Share this post Link to post Share on other sites
SmOke_N 211 Posted August 24, 2010 You have to read the current data first with GUICtrlReadData() then set that data concatenated with the new data with GUICtrlSetData(). A listview would be much better. GL Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Share this post Link to post Share on other sites
Thegirl 0 Posted August 24, 2010 Hmm I dont think I know, what you mean. I have tried this: $recv = TCPRecv($socket, 1024) $data2 = GUICtrlReadData($recv) GUICtrlSetData($EditText,$data2) But it dosent recognize GUICtrlReadData(), should I use another lib ? I cant find GUICtrlReadData() in the function documentation. DO you mean GUICtrlRead() ? Thanks a lot Share this post Link to post Share on other sites