zxzxzx Posted September 12, 2008 Share Posted September 12, 2008 Please see this http://www.autoitscript.com/forum/index.php?showtopic=52121 It has a a function at line 471. Func _SendAll($sCommand,$sString, $sFrom="") ;Enter a loop For $x = 1 To $MaxUsers ;if there is a user on that socket then If $User_List[$x][0] <> 0 Then If $sFrom = "" Then ;Send the message to all the users. _TCPSend($User_List[$x][0], $sCommand & Chr(2) & $sString, $User_List[$x][2]) Else ;Send a message to all the user that a user said something and encrypt it. _TCPSend($User_List[$x][0],$sCommand & Chr(2) & $sFrom & Chr(2) & $sString, $User_List[$x][2]) EndIf EndIf Next Return 1 EndFuncoÝ÷ Ù8Zµû§rب¥¥¦Ç§u©²Æ zÚPn´Ûh±éÝE©Ý¢cn·«¶r^¢^¦¦W»-¥ê)ì"ZÞqè¯{TrÝ¥ê)ì"ZÞqè¯{á·ize{¥·z+ÞðZ.®Øize{¥·z+ÞÙ©Ýz×µÂv+^vØZµû§rب«¢+ÙÕ¹}M¹±° ÀÌØíÍ ½µµ¹°ÀÌØíÍMÑÉ¥¹°ÀÌØíÍɽ´ôÅÕ½ÐìÅÕ½Ðì¤($($í¹Ñȱ½½À(%½ÈÀÌØíàôÄQ¼ÀÌØí5áUÍÉÌ($$($$í¥Ñ¡É¥ÌÕÍȽ¸Ñ¡ÐͽÐÑ¡¸($%%ÀÌØíUÍÉ}1¥ÍÑlÀÌØíáulÁt±ÐìÐìÀQ¡¸($$$($$%%ÀÌØíÍɽ´ôÅÕ½ÐìÅÕ½ÐìQ¡¸($$$$($$$$íM¹Ñ¡µÍÍѼ±°Ñ¡ÕÍÉ̸($$$%}Q AM¹ ÀÌØíUÍÉ}1¥ÍÑlÀÌØíáulÁt°ÀÌØíÍ ½µµ¹µÀì ¡È È¤µÀìI¹½´ À°ÄÀ°Ä¤°ÀÌØíUÍÉ}1¥ÍÑlÀÌØíáulÉt¤($$%±Í($$$$($$$$íM¹µÍÍѼ±°Ñ¡ÕÍÈÑ¡ÐÕÍÈͥͽµÑ¡¥¹¹¹ÉåÁХи($$$%}Q AM¹ ÀÌØíUÍÉ}1¥ÍÑlÀÌØíáulÁt°ÀÌØíÍ ½µµ¹µÀì ¡È È¤µÀìÀÌØíÍɽ´µÀì ¡È È¤µÀìI¹½´ À°ÄÀ°Ä¤°ÀÌØíUÍÉ}1¥ÍÑlÀÌØíáulÉt¤($$%¹%($%¹%(%9áÐ(%IÑÕɸÄ)¹Õ¹oÝ÷ ØêÞv+eG¶X§{^·jëh×6Case $Button3 ;Say _SendAll( "message", Random(0,10,1) & Chr(2) & "1000,0x0000FF,Lucida Console,14", 'Root') GUICtrlSetData($Edit1,GUICtrlRead($Edit1) & 'Root: ' & GUICtrlRead($Input1) & @CRLF) GUICtrlSetData($Input1, '') But didn't work. Can you help me ? 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