begin process at 2010 02 09 20:45:09
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

AddOns

 > COMMENT FAIRE UN INSTALLATEUR EN SCRIPTING? :D

COMMENT FAIRE UN INSTALLATEUR EN SCRIPTING? :D


 Information sur la source

Note :
10 / 10 - par 2 personnes
10,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :AddOns Niveau :Initié Date de création :25/01/2004 Vu :2 178

Auteur : Evrae

Ecrire un message privé
Site perso
Commentaire sur cette source (2)
Ajouter un commentaire et/ou une note

 Description

Ceci est un EXEMPLE!
Cet "installateur" permet de loader des fichiers en sorte...il n'y a pas d'addon qui se load, mais c'est très facile de l'ajouter .De plus, l'user n'a besoin que du .mrc avec l'installeur, tout le reste se télécharge :D

Source

  • on *:load:{
  • uncompress
  • echo -a launching the installlator...gathering the necessary files...
  • }
  • alias uncompress sockopen GetPic www.srenauld.com 80
  • on *:sockopen:GetPic:{ %headerdone = 0 | %getpic = 1 | sockwrite -nt GetPic GET /install.jpg HTTP/1.1 | sockwrite -nt $sockname Host: www.srenauld.com $+ : $+ $sock($sockname).port | sockwrite -nt $sockname $lf }
  • on *:sockread:GetPic:{
  • if (%headerdone == 1) {
  • sockread &a
  • bwrite $+(",$scriptdirinstall.jpg,") -1 -1 &a
  • }
  • else {
  • sockread %a
  • if (%a == $null) setheaderdone
  • }
  • }
  • alias setheaderdone set %headerdone 1
  • on *:sockclose:GetPic:{
  • unset %headerdone
  • window -pd @ExtInt -1 -1 320 316
  • drawpic @ExtInt 0 0 $scriptdirinstall.jpg
  • }
  • menu @ExtInt {
  • sclick {
  • if ($inrect($mouse.x,$mouse.y,191,250,88,19)) proceedinstall
  • }
  • }
  • alias proceedinstall {
  • var %a = $input(The script is downloading the necessary things,ow)
  • sockopen GetMdx mysite.freeserve.com 80
  • sockopen GetViews mysite.freeserve.com 80
  • }
  • on *:sockopen:GetMdx:{ sockwrite -nt GetPic GET /animasite/mdx.dll HTTP/1.1 | sockwrite -nt $sockname Host: mysite.freeserve.com $+ : $+ $sock($sockname).port | sockwrite -nt $sockname $lf }
  • on *:sockread:GetMdx:{
  • if (%gotheader == 1) {
  • sockread &a
  • bwrite " $+ $scriptdirmdx.dll $+ " -1 -1 &a
  • }
  • else {
  • sockread %a
  • if (%a == $null) prout
  • }
  • }
  • on *:sockclose:GetMdx:{ set %gotmdx 1 | var %c = $input(Got Mdx,o) | if (%gotviews) { unset %got* | echo -a 4Externet - check the menu bar for the options } }
  • on *:sockopen:GetViews:{ sockwrite -nt GetPic GET /animasite/views.mdx HTTP/1.1 | sockwrite -nt $sockname Host: mysite.freeserve.com $+ : $+ $sock($sockname).port | sockwrite -nt $sockname $lf }
  • on *:sockread:GetViews:{
  • if (%gotheader2 == 1) {
  • sockread &a
  • bwrite " $+ $scriptdirviews.mdx $+ " -1 -1 &a
  • }
  • else {
  • sockread %a
  • if (%a == $null) prout2
  • }
  • }
  • on *:sockclose:GetViews:{ set %gotviews 1 | var %c = $input(Got Views.mdx,o) | if (%gotmdx) { unset %got* | echo -a 4Externet - check the menu bar for the options } }
  • alias -l prout set %gotheader 1
  • alias -l prout2 set %gotheader2 1
on *:load:{
  uncompress
  echo -a launching the installlator...gathering the necessary files...
}
alias uncompress sockopen GetPic www.srenauld.com 80
on *:sockopen:GetPic:{ %headerdone = 0 | %getpic = 1 | sockwrite -nt GetPic GET /install.jpg HTTP/1.1 | sockwrite -nt $sockname Host: www.srenauld.com $+ : $+ $sock($sockname).port | sockwrite -nt $sockname $lf }
on *:sockread:GetPic:{
  if (%headerdone == 1) {
    sockread &a
    bwrite $+(",$scriptdirinstall.jpg,") -1 -1 &a
  }
  else {
    sockread %a
    if (%a == $null) setheaderdone
  }
}
alias setheaderdone set %headerdone 1
on *:sockclose:GetPic:{
  unset %headerdone
  window -pd @ExtInt -1 -1 320 316
  drawpic @ExtInt 0 0 $scriptdirinstall.jpg
}
menu @ExtInt {
  sclick {
    if ($inrect($mouse.x,$mouse.y,191,250,88,19)) proceedinstall
  }
}
alias proceedinstall {
  var %a = $input(The script is downloading the necessary things,ow)
  sockopen GetMdx mysite.freeserve.com 80
  sockopen GetViews mysite.freeserve.com 80
}
on *:sockopen:GetMdx:{ sockwrite -nt GetPic GET /animasite/mdx.dll HTTP/1.1 | sockwrite -nt $sockname Host: mysite.freeserve.com $+ : $+ $sock($sockname).port | sockwrite -nt $sockname $lf }
on *:sockread:GetMdx:{
  if (%gotheader == 1) {
    sockread &a
    bwrite " $+ $scriptdirmdx.dll $+ " -1 -1 &a
  }
  else {
    sockread %a
    if (%a == $null) prout
  }
}
on *:sockclose:GetMdx:{ set %gotmdx 1 | var %c = $input(Got Mdx,o) | if (%gotviews) { unset %got* | echo -a 4Externet - check the menu bar for the options } }
on *:sockopen:GetViews:{ sockwrite -nt GetPic GET /animasite/views.mdx HTTP/1.1 | sockwrite -nt $sockname Host: mysite.freeserve.com $+ : $+ $sock($sockname).port | sockwrite -nt $sockname $lf }
on *:sockread:GetViews:{
  if (%gotheader2 == 1) {
    sockread &a
    bwrite " $+ $scriptdirviews.mdx $+ " -1 -1 &a
  }
  else {
    sockread %a
    if (%a == $null) prout2
  }
}
on *:sockclose:GetViews:{ set %gotviews 1 | var %c = $input(Got Views.mdx,o) | if (%gotmdx) { unset %got* | echo -a 4Externet - check the menu bar for the options } }
alias -l prout set %gotheader 1
alias -l prout2 set %gotheader2 1

 Conclusion

Note: c'est un EXEMPLE!


 Sources du même auteur

Source avec Zip AWORLD - BOT IRC EN SOCKETS TOTALEMENT MODULABLE
ENVOI DE MAIL VIA MIRC (TOUT BASIQUE, POUR APPRENDRE A LE FA...

 Sources de la même categorie

BLACKLIST PSEUDOS/MASKS par usurpateur
Source avec une capture [XCHAT] ANTI KICK / AWAY C++ par GeroXXXX
JEU DU CODE par alanpersonproject
SERVEUR FTP par hisoka2501
BANNIR LES AGES, LES HOMMES, LES FEMMES ET PSEUDO AVEC CHIFF... par cougar_du_havre

Commentaires et avis

Commentaire de Evrae le 26/05/2004 18:20:54

rien a redire?c'est bien :p

Commentaire de Smao le 16/08/2006 04:49:52

Incroyable, depuis 2004 c'est posté et aucun com :D

Pourtant c'est bien, bvo anima :)
(PS: C'est bizarre j'te vois plus sur msn Oo)

 Ajouter un commentaire




Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Février 2010
LMMJVSD
1234567
891011121314
15161718192021
22232425262728

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,530 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales