
ludics
Active Members-
Posts
34 -
Joined
-
Last visited
Everything posted by ludics
-
Thanks, helped me a lot to the anti-cheat...
-
Any idea or solution...
-
Any idea or solution...
-
#include "TCP.au3" ToolTip("SERVER: Creating server...",10,30) $hServer = _TCP_Server_Create(88); A server. Tadaa! _TCP_RegisterEvent($hServer, $TCP_NEWCLIENT, "NewClient"); Whooooo! Now, this function (NewClient) get's called when a new client connects to the server. _TCP_RegisterEvent($hServer, $TCP_DISCONNECT, "Disconnect"); And this,... this will get called when a client disconnects. While 1 WEnd Func NewClient($hSocket, $iError); Yo, check this out! It's a $iError parameter! (In case you didn't noticed: It's in every function) ToolTip("SERVER: New client connected."&@CRLF&"Sending this: Bleh!",10,30) _TCP_Send($hSocket, "Bleh!"); Sending: "Bleh!" to the new client. (Yes, that's right: $hSocket is the socket of the new client.) EndFunc Func Disconnect($hSocket, $iError); Damn, we lost a client. Time of death: @Hour & @Min & @Sec :P ToolTip("SERVER: Client disconnected.",10,30); Placing a tooltip right under the tooltips of the client. EndFunc in the function "ToolTip("SERVER: Client disconnected.",10,30); Placing a tooltip right under the tooltips of the client." As you can get the ip of the user disconnects ? I tested with "_TCP_Server_ClientIP()" but it does not work and the result is 0 Any idea or solution...
-
Func Disconnect($hSocket, $iError); Damn, we lost a client. Time of death: @Hour & @Min & @Sec :P ToolTip("SERVER: Client disconnected.",10,30); Placing a tooltip right under the tooltips of the client. EndFunc As you can get the ip of the user disconnects =? _TCP_Server_ClientIP() not found
-
CREATE TABLE IF NOT EXISTS `Server_Sscreens` ( `SscreensID` int(11) NOT NULL AUTO_INCREMENT, `SteamID` varchar(255) NOT NULL DEFAULT '', `Ssdate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `FileName` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`SscreensID`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; As you can get a list of all columns in a MsgBox Example: 1|0:13132154|12:12:12|text.txt 2|0:13132154|12:12:12|text.txt 3|0:13134154|12:12:12|text.txt
-
Ok, obtained thanks for the information.
-
I am Spanish, I leave in my language and translate Bueno la cuestión es que tengo un servidor en Pawn y otro en Autoit, digamos que quiero hacer la comunicación entre ambos, por lo tanto: Pawn => por ejemplo envió hola al servidor Autoit y este lo recibe en binario 01010011000000000000, por lo tanto lo convierto con BinaryToString y entonces saco la palabra bien hola. Autoit => envió una palabra hola y este cuando llega al servidor de Pawn lo que recibe es 114 es decir que es o como puedo hacer para que ese 114 se convierta en hola es que no se si es por debería enviar hola en binario y lo e probado y nada o es que trabajan con otro tipo de socket, pero e probado con TCP y UDP, en STREAM Creo que pasa algo parecido con las comunicaciones entre Java y Autoit, yo creo que el problema esta en el tema de la codificación, sabe alguien como arreglar el tema.
-
that already, the connection ago the problem comes when shipment that this sends but shipment " hol" it leaves codified " 114"
-
"pawn" is a simple, C-like, language. here If they have not heard speak I suppose that they will not have any idea The unique thing that I can say is that: Pawn: UDP the answer is in binary, but the question leaves codified in another language.
-
I feel my English it is not very good and it is the unique resource that I have, I look for the way solely that the answer by TCP of Autoit can read Pawn.
-
someone can help me, whether or not it is possible and if possible would have to do as =?
-
I need to connect a servant of Autoit to Pawn, the answer of Pawn to Autoit the coat by means of " BinaryToString the problem comes when it attempt the other way around, that what sent does not leave as it waited for if for example it did not send hello and the answer is 114 There would be some form to communicate Autoit to Pawn?
-
good game, thank you very much for everything ...
-
you see no result $VALUE = "123456789" $SID = $VALUE / 2 $SID1 = $VALUE * 2 $STEAMBIT=0 if not ($SID1 == $VALUE) then $STEAMBIT=1 Sleep(250) MsgBox(4096, "Program files are in:", "STEAM_0:"&$STEAMBIT&":"&Round($SID, 1)) STEAM_0:1:61728394
-
But the problem is that arredondeo is on the rise, ie given a number, then if it goes xxx1.5 not be XXX2 if XXX1 not know if I understand ...
-
No se algo hago mal por que no me lo arredondea, sigue saliéndome xxxx.5 For $i = 1 to 100 $VALUE = RegEnumKey("HKCU\Software\Valve\Steam\Users", $i) if @error <> 0 Then ExitLoop $SID = $VALUE / 2 $SID1 = $VALUE * 2 $STEAMBIT=0 if not ($SID1 == $VALUE) then $STEAMBIT=1 Sleep(250) MsgBox(4096, "Program files are in:", "STEAM_0:"&$STEAMBIT&":"&Round($SID, 1)) next
-
Okay, I got it from subfolders not find the command, but the decimal part of "xxxx.5" I can not find the solution, the state looking and looking and not remove it ... For $i = 1 to 100 $VALUE = RegEnumKey("HKCU\Software\Valve\Steam\Users", $i) if @error <> 0 Then ExitLoop $SID = $VALUE / 2 $SID1 = $VALUE * 2 $STEAMBIT=0 if not ($SID1 == $VALUE) then $STEAMBIT=1 MsgBox(4096, "Program files are in:", "STEAM_0:"&$STEAMBIT&":"&$SID) next
-
Okay, there is any way to remove the "xxxxx.5" is the tenth... round without ... Otherwise the "RegRead" subfolders if I have not read to me there is any way to draw: HKCU \ Software \ Valve \ Steam \ Users HKCU \ Software \ Valve \ Steam \ Users \ 521313132 HKCU \ Software \ Valve \ Steam \ Users \ 545646123
-
nice example ...xD I have the code but does not work as you see: $VALUE = "123456789" $SID = $VALUE / 2 $SID1 = $VALUE * 2 $STEAMBIT=0 if not $SID1 == $VALUE then $STEAMBIT=1 MsgBox(4096, "Program files are in:", "STEAM_0:"&$STEAMBIT&":"&$SID) The solution would be: STEAM_0: 1:61728394 Any way to remove the decimal and to function well?
-
No, but neither has a tale to tell whether I am stupid, I just would like me to pass this batch AutoIt to do a program together other roles ... and the question is not how to read the record and I am a subfolder ( "RegRead") and is not as round a number with decimal places, more than anything ... I would like to help me, not insult me ...
-
Thank you for your very kind words, the difference between you and me is that I live life, and you live in a cave to go well ... life ...
-
someone help me please....
-
I am part of this code. "Cmd" and I would like, if someone could help me pass it to AutoIt, the truth and I have little idea if you can not do all this code in AutoIt or would make a mixture. @echo off if NOT %1a == a goto recurse color F0 reg query HKCU\Software\Valve\Steam\Users > users.tmp echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º To copy text rightclick the title bar, º echo º Edit ¯ Mark ¯ highlight the area to copy º echo º with your mouse and press Enter. º echo ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ echo º for /f "skip=1 delims=\ tokens=6" %%i in (users.tmp) do call %0 %%i del users.tmp echo º echo ÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º Press a key to quit º echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ pause>nul goto end :recurse reg query HKCU\Software\Valve\Steam\Users\%1\friends /v PersonaName > name.tmp for /f "skip=2 tokens=3 delims= " %%i in (name.tmp) do set NAME=%%i del name.tmp set SID=%1 set /A SID=SID/2 set /A SID1=SID*2 set STEAMBIT=0 if NOT %SID1% == %1 set STEAMBIT=1 if %NAME%a == a ( echo º Can't find name for SteamID STEAM_0:%STEAMBIT%:%SID% ) else ( echo º "%NAME%" uses SteamID STEAM_0:%STEAMBIT%:%SID% ) :end I do not know if it is possible to get all the code in AutoIt, help me much.
-
It is worth this script or it is worth to me and it works correctly, but or of the problems that now consider to me it is that if for example ban to a user, and I do not allow login him in the program, would have to check the user, the password and if this ban, with script that we have now I imagine that only adding the table ban and putting if this ban = 1 if not this = 0 or this, but to be able to compare it would need two querys, the question is that if or I am login and I want to enter with another one query after login to verify in the same row of the user but in a different table, it would be possible to be done ?