xiantez Posted August 10, 2018 Posted August 10, 2018 (edited) Hello Everyone, I am having a bit of trouble getting my FileReadLine function to read all the characters in a specific text file. Here is my code. Func PastePassword() ;Paste Password $file = ('C:\Text\Logins\MacroPWList.txt') FileOpen($file, 0) For $i = 2 to _FileCountLines($file) $line = FileReadLine($File, 2) GUISetState(@SW_HIDE, $wsi_form) Sleep(350) Send($line) Sleep(150) Send("{Enter}") ExitLoop Next EndFunc $line should return the following string "EY@RdJ5S}#<r8rh" However, instead $line is returning "EY@RdJ5S}<r8rh" For some reason it is leaving out the # sign in the string. Does anyone know why that is? Thanks for all your help! Edited August 10, 2018 by xiantez
jdelaney Posted August 10, 2018 Posted August 10, 2018 (edited) Send($line, 1) Click the Send link, above, to read why in the helpfile Edited August 10, 2018 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
xiantez Posted August 10, 2018 Author Posted August 10, 2018 12 minutes ago, jdelaney said: Send($line, 1) Click the Send link, above, to read why in the helpfile *facepalm* Thanks so much!
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