Thegirl Posted August 23, 2010 Share 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 Link to comment Share on other sites More sharing options...
4ggr35510n Posted August 24, 2010 Share Posted August 24, 2010 Have you tried...GUICtrlSetData? 3rd argument let you insert data to edit at certain position. Link to comment Share on other sites More sharing options...
Thegirl Posted August 24, 2010 Author Share 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 Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 24, 2010 Moderators Share 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. Link to comment Share on other sites More sharing options...
Thegirl Posted August 24, 2010 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now