Sign in to follow this  
Followers 0
Frankie Paul

Script Wirting Gliching Like Crazzy

4 posts in this topic

hey i have a script here that read from a file then inputs the values in for each fild like user name and pass word the ting is when i tell it to read the pass word part of the file it give me a foren number when it should put the pass i can't figure this thing out can anyone help here my code tell me what you can do ???

ServerDebuger.au3


ƒrankie Paul

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

i dont visually see the error.... maybe you could make a small "mok-up" that represents the problem with a text file of names/passwords for us to view

also you could shorten your script a little by removing the "$r"

original code

ElseIf StringLeft($line, 4) = "Pass" Then
        $r = StringInStr($line, "=")
        $result = $r
        $pass = StringRight($line, $result) 
;MsgBox(0, "Value of String", $pass)

new code

ElseIf StringLeft($line, 4) = "Pass" Then
        $result = StringInStr($line, "=")
        $pass = StringRight($line, $result) 
;MsgBox(0, "Value of String", $pass)

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

i dont visually see the error.... maybe you could make a small "mok-up" that represents the problem with a text file of names/passwords for us to view

also you could shorten your script a little by removing the "$r"

original code

ElseIf StringLeft($line, 4) = "Pass" Then
        $r = StringInStr($line, "=")
        $result = $r
        $pass = StringRight($line, $result) 
;MsgBox(0, "Value of String", $pass)

new code

ElseIf StringLeft($line, 4) = "Pass" Then
        $result = StringInStr($line, "=")
        $pass = StringRight($line, $result) 
;MsgBox(0, "Value of String", $pass)

8)

ya i know i did that case stinginStr return a number vale i was trying to get the actual string. i fix the problem by the way just had to use StringTrimleft and all is well thank you though for your help and you'll hear from me soon

Frankie Paul


ƒrankie Paul

Share this post


Link to post
Share on other sites

cool


ƒrankie Paul

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0