On 02/04/2016 23:37, Michael Selik wrote:
I might be overlooking something, but raw_input (Python 2) and input
(Python 3) won't return the input from sys.stdin until you type ENTER. Or
did I misunderstand the question?
On Sat, Apr 2, 2016 at 6:30 PM BartC <b...@freeuk.com> wrote:
On 02/04/2016 23:16, Ned Batchelder wrote:
On Saturday, April 2, 2016 at 6:09:13 PM UTC-4, BartC wrote:
On 02/04/2016 22:59, Loop.IO wrote:
Hey
So I built a keylogger using python as a test, got the code from the
tutorial online, I want to improve on it to make it more automated, but the
issue I'm having is it won't create the file until I press return, any
clues where I'm going wrong?
If I press return it makes the batch file, otherwise it just hangs.
name=raw_input ('C:\\Documents\\PythonCoding\\')+'launch2.bat'
You're asking for a file name to be entered. So that if ABC is pressed,
followed by Enter, it will use:
C:\Documents\PythonCoding\ABClaunch2.bat
That line of code will prompt the user:
C:\Documents\PythonCoding\
then the user enters ABC<enter>:
C:\Documents\PythonCoding\ABC
and raw_input returns "ABC", so name becomes "ABClaunch2.bat".
Yes, of course. I ran the code and picked up the wrong line even though
I printed out 'name'!
But, it does look as though that path is supposed to form part of the
resulting filename.
--
Bartc
--
https://mail.python.org/mailman/listinfo/python-list
BartC is renowned for knowing nothing about Python by his own
admittance, and would you please not top post on the list.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
--
https://mail.python.org/mailman/listinfo/python-list