Skocz do zawartości

Rekomendowane odpowiedzi

Opublikowano

Mam taki skrypt:

GML
site = '***************';

password = '********';

IP = get_string('Enter your IP( Hamachi):','Here');

serverinfo = 'Waiting for other player'

hash = md5( IP + serverinfo + password );

execute_shell( site + '?add&nick=' + IP + '&score=' + serverinfo + '&code=' + hash, 0 );

 

Ale gdy to się uruchamia, to od razu pojawia się otwarta przeglądarka z tą stroną, a ja chcę aby było to wykonywane w tle.

  • Administratorzy
Opublikowano

Dla tego o 39dll mówiłem, zresztą jest skrypt pobierania plików w tle chyba właśnie autorstwa Ranmusa na 39dllu, a więc takie nowe RMHttp.

Opublikowano

zarzuce jeszcze czymś takim, prosto od 39ster-a

GML
/*

script will return your network ip address. It connects to whatismyip.com:80 which sends

the ip address in the form of a http payload packet.

*/

var tcp;

tcp = tcpconnect("whatismyip.org", 80, 0);

if(!tcp)return "";

setformat(tcp, 1, chr(13) + chr(10) + chr(13) + chr(10)); //set format to text mode to receive double blank lines (the whole header file)

//send get request

clearbuffer();

writechars("GET / HTTP/1.1" + chr(13) + chr(10));

writechars("Host: whatismyip.org" + chr(13) + chr(10));

writechars("Connection: close"+chr(13) + chr(10));

writechars("Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/x-alambik-script, application/x-alambik-alamgram-link, */*"+chr(13)+chr(10));

writechars("Accept-Language: en-us"+chr(13) + chr(10));

writechars("User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322)");

sendmessage(tcp);

 

a = receivemessage(tcp); //receive http header (and ignore)

a = receivemessage(tcp, 16); //receive payload data

closesocket(tcp);

return readchars(bytesleft()); //return the payload data (ip address in this case)</span></span>

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...