begin process at 2012 02 08 20:00:46
  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 632

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

PACMAN MULTI-JOUEUR EN LIGNE par wims
PROXY&SOCKS SCANNER+LEECHER par independentt
GESTIONNAIRE DE HIGHLIGHT AVANCÉ AVEC IGNORE SALON OU PSEUDO par doob666
AUTOJOIN HTABLE MULTISERVER par doob666
TCL - AJOUT SUPPRESSION DE LOGS par Atok

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...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
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 : 1,030 sec (4)

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