jaenster Posted November 18, 2006 Posted November 18, 2006 #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
Helge Posted November 18, 2006 Posted November 18, 2006 Should be a colon before and after the parameters I believe. PRIVMSG #testchannel :promp og bæsj ?:
jaenster Posted November 18, 2006 Author Posted November 18, 2006 (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 November 18, 2006 by jaenster -jaenster
Fossil Rock Posted November 18, 2006 Posted November 18, 2006 speak english and what do you mean ? by a colon? and still not workingSpeak 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!
Helge Posted November 18, 2006 Posted November 18, 2006 (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 November 18, 2006 by Helge
jaenster Posted November 18, 2006 Author Posted November 18, 2006 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
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