IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

VBScript Discussion :

erreur vbscript aidez moi


Sujet :

VBScript

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Nouveau candidat au Club
    Homme Profil pro
    Lycéen
    Inscrit en
    Août 2015
    Messages
    1
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Algérie

    Informations professionnelles :
    Activité : Lycéen
    Secteur : Enseignement

    Informations forums :
    Inscription : Août 2015
    Messages : 1
    Par défaut erreur vbscript aidez moi
    salut tout le monde
    j'ai une application encrypter - décrypter qui me donne l'erreur suivant Nom : Capsdvsdvsdvsdvsdvsdvture.JPG
Affichages : 272
Taille : 25,0 Ko ...... je ne sait pas d' ou elle vienne !!!!!!!
    voila l'application http://www.mediafire.com/download/0m...lbaj/walid.hta et voila le code
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    <html><head><title>Message Encrypter/Decrypter - Walid BAGHDADI 2015</title><HTA:APPLICATION
    APPLICATIONNAME="Message Encrypter/Decrypter - Walid BAGHDADI 2015"
    ID="Message Encrypter/Decrypter - Walid BAGHDADI 2015"
    VERSION="1.0"
    MAXIMIZEBUTTON="no"
    SCROLL="no"/></head>
    <style> td { color: Black; }
    caption { color: Black; }
    body { font-family: Arial; background-color: #708090; color: #808080; }
    input { background-color: #202020; color: #808080; }
    textarea { background-color: #202020; color: #808080; }
    </style>
    <script language="VBScript"> 
    Sub Window_OnLoad
    Dim width,height
    width=700
    height=500
    self.ResizeTo width,height
    End Sub
    Function Validate(ID)
    On Error Resume Next
    Key = Int(pass.value)
    If (pass.value = "") Then
    X = MsgBox("You have to enter your password..!", 48, "Error")
    Else If (tamsg.value = "") Then
    X = MsgBox("Enter the text to encrypt or decrypt!", 48, "ERROR!")
    Else
    Junk = SetTimeOut(KEYS(ID), 1)
    End If
    End If
    End Function
    Function KEYS(ID)
    text = pass.value
    code = 0
    Do Until text = ""
    code = ((Asc(Left(text, 1)))+code)
    text = Replace(text, Left(text, 1), "", "1", "1")
    Loop
    code = code Mod 255
    akey.value = code
    Junk = SetTimeOut(ID, 1)
    End Function
    Function Encrypt
    Alpha = Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z")
    text = tamsg.value
    code = ""
    key = Int(akey.value)
    Do Until text = ""
    cnum = Asc(Left(text, 1))
    cnum = (cnum+key) Mod 255
    num = cnum Mod 26
    count = 0
    tst = num
    Do Until tst = cnum
    tst = tst+26
    count = count+1
    Loop
    code = code & Alpha(num) & count
    text = Replace(text, Left(text, 1), "", "1", "1")
    Loop
    tamsg.value = code
    End Function
    Function Decrypt
    Alpha = Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z")
    text = tamsg.value
    code = ""
    key = Int(akey.value)
    Do Until text = ""
    lttr = Left(text, 2)
    num = Asc(Left(lttr, 1))-65
    chk = Right(lttr, 1)
    count = 0
    Do Until count = Int(chk)
    num = num+26
    count = count+1
    Loop
    num = num-key
    Do While num <= 0
    num = num+255
    Loop
    Code = code & Chr(num)
    text = Replace(text, Left(text, 2), "", "1", "1")
    Loop
    tamsg.value = code
    End Function
    </script>
    <body bgcolor="white"> <input type="hidden" id="akey"> <span title=""> <span title="B.M.W"> 
    <marquee color="white" bgcolor="black" style="font-family= Book Antiqua;">This code is created by <font color="cyan">WALID BAGHDADI 2015 ALL RIGHTS REVERVED</font></marquee> </span> <table align="center" width="400">
    <caption style="font-family:Book Antiqua; font-size:20;"><hr color="black"><b>Message Encrypter-Decrypter</b><hr color="black"></caption>
    <tr> <td align="center"><span title="Enter your Full message here"><textarea id="tamsg" cols="80" rows="15"></textarea></span></td> </tr>
    &nbsp;&nbsp;&nbsp;&nbsp; <td color="black" style="font-family: Book Antiqua; font-size:18;"><hr color="black"> Password &nbsp;<span title="Enter your password here">
    <input type="password" id="pass"></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <span title="Click Here to Encrypt your Message"> <input style="width: 170px; height:23px; color: white; background-color: #203040; font-family:Book Antiqua;" type="button" Value="Encrypt" id="btnenc" onClick="Validate('Encrypt')" onmouseover="btnenc.style.background='#102030'" onmouseout="btnenc.style.background='#203040'"> </span> <span title="Click Here to Decrypt your Message"> <input style="width: 170px; height:23px; color: white; background-color: #203040; font-family: Book Antiqua; font-size:13;" type="button" Value="Decrypt" id="btndec" onClick="Validate('Decrypt')" onmouseover="btndec.style.background='#102030'" onmouseout="btndec.style.background='#203040'"> </span></td>
    </tr> <tr> <td align="right"><hr color="black"><span title="All rights reserved by Attract Tech" style="font-size: 13px; font-family:Book Antiqua;">&copy; 2013 Attract Tech - All rights reserved.</span></td> </tr> </table> </body> </html>
    aidez moi a résoudre le problème Merci d 'avance !!!!!

  2. #2
    Expert éminent
    Avatar de Marc-L
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2013
    Messages
    9 468
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2013
    Messages : 9 468
    Par défaut



    Bonjour,

    l'erreur est pourtant claire : tu mélanges torchon & serviette !
    Que contient la variable chk ? (cf ligne 71) Et la fonction Int s'applique à quel type de donnée ?


    _____________________________________________________________________________________________________
    Je suis Charlie, Bardo, Sousse

Discussions similaires

  1. message erreur aidez moi
    Par lilialex dans le forum Access
    Réponses: 10
    Dernier message: 13/12/2006, 13h26
  2. Erreur de variable, je comprends vraiement pas :( aidez moi svp.
    Par plex dans le forum PHP & Base de données
    Réponses: 6
    Dernier message: 04/08/2006, 14h16
  3. pb erreur de pointeur aidez moi please
    Par campgourou dans le forum Java ME
    Réponses: 20
    Dernier message: 16/03/2006, 16h36
  4. Je vois pas d'où vient mon erreur!! Aidez moi SVP
    Par liliboms dans le forum MS SQL Server
    Réponses: 3
    Dernier message: 04/04/2005, 08h25

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo