Sign in to follow this  
Followers 0
Thegirl

Gui to irc client

5 posts in this topic

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



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

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

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


[center]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.[/center]

Share this post


Link to post
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0