Jump to content

Gui to irc client


Thegirl
 Share

Recommended Posts

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

  • Moderators

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...