Frankie Paul Posted March 16, 2006 Posted March 16, 2006 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
Valuater Posted March 16, 2006 Posted March 16, 2006 (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 March 16, 2006 by Valuater
Frankie Paul Posted March 16, 2006 Author Posted March 16, 2006 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now