Sign in to follow this  
Followers 0
jaenster

Need HELP!

6 posts in this topic

#include <GuiConstants.au3>
TCPStartup()

GuiCreate("TCP leler", 800, 323)

$hEdit = GuiCtrlCreateEdit("", 10, 10, 780, 280,$ES_READONLY)
$hInput = GuiCtrlCreateInput("", 10, 300, 300, 20)
$hButton = GuiCtrlCreateButton("Send", 320, 300, 70, 20)
$socket = TCPConnect(TCPNameToIP("irc.allnetwork.org"),6667)
;sleep(1000)
TCPSend($socket,"NICK bot"&@CRLF)
TCPSend($socket, "USER bot 0 0 :bot"&@CRLF) 
TCPSend($socket, "JOIN #care"&@CRLF) 
TCPSend($socket, "PRIVMSG #care Hello Friends"&@CRLF) 


;sleep(1000)

sleep(500)


GuiSetState()
While 1
    $msg = GUIGetMsg()
    if $msg = $GUI_EVENT_CLOSE then ExitLoop
    
    $socketrecv = TCPRecv($socket,1024*10)
    if $socketrecv > "" Then 
        GUICtrlSetData($hEdit,$socketrecv,1)
    EndIf
    if $msg = $hButton Then TCPSend($socket,$hInput&@CRLF)
WEnd
TCPShutdown()

im making a sort of irc thing but when i type in the input and send it it only says in the console:

COMMAND: PRIVMSG #care LOL ;)

OUTPUT: :jmn.id.allnetwork.org 421 bot 4 :Unknown command

s0me help me pls ?


-jaenster

Share this post


Link to post
Share on other sites



Should be a colon before and after the parameters I believe.

PRIVMSG #testchannel :promp og bæsj ?:

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Should be a colon before and after the parameters I believe.

PRIVMSG #testchannel :promp og bæsj ?:

speak english and what do you mean ? by a colon? and still not working

Edited by jaenster

-jaenster

Share this post


Link to post
Share on other sites

speak english and what do you mean ? by a colon? and still not working

Speak English ? SPEAK ENGLISH ? you are a moron.

If you don't know what a colon (:) is then you had better take up finger painting.

With remarks like the ones you have made, I'd imagine no one will give a sh!t if it's working or not.


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Colon is English for Doppelpunkt, dumkopf ;) I'm not into the IRC-world, but from the

testing I've done with creating IRC-plugins in Au3 that sample-code works fine for me.

Edited by Helge

Share this post


Link to post
Share on other sites

Speak English ? SPEAK ENGLISH ? you are a moron.

If you don't know what a colon (:) is then you had better take up finger painting.

With remarks like the ones you have made, I'd imagine no one will give a sh!t if it's working or not.

stfu ?


-jaenster

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