Hello everybody.
I have a very simple script that just reads a string from a file and outputs whenever I press CTRL+ALT+p
^!p::
FileReadLine, Pwd, C:\pwd.txt, 1
Send %Pwd%
Return
It works great except when the files contains a # character. In this case it's ignored. Escaping the character does not help.
What could be the problem?
FileReadLine does not read # character
Re: FileReadLine does not read # character
You're wrong. FileReadLine takes that character without a problem (use a MsgBox to cross-check it).
Send <> SendRaw
Send <> SendRaw
Re: FileReadLine does not read # character
Thank you for your answer.
I'm not sure I understand.
I substituted Send %Pwd% with SendRaw %Pwd% and the result is the same.
I'm not sure I understand.
I substituted Send %Pwd% with SendRaw %Pwd% and the result is the same.
Re: FileReadLine does not read # character
Code: Select all
F10::
FileReadLine, Pwd, pwd.txt, 1 ; changed the path as C:\ is often restricted
MsgBox % Pwd ; check the outcome of FileReadLine
Send, %Pwd% ; delivers "assword" ! which is slightly correct!
Sleep, 800
SendRaw, %Pwd% ; delivers #password which 100% accurate
Return
F12::Reload
F11::ExitApp
Re: FileReadLine does not read # character
Thank you very much!!
Very nice answer.
I think I forgot to reload the script when I firs modified it. Now it works as a charm!!
Keep up the good work!
Very nice answer.
I think I forgot to reload the script when I firs modified it. Now it works as a charm!!
Keep up the good work!
Who is online
Users browsing this forum: doodles333, iamMG and 170 guests