Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-04 Thread Ben Finney
"Loop.IO" writes: > You now seem to be on some sort of rampage You've mis-interpreted Erik's attempts to help. Somehow the requests for details have made you defensive; I'm not sure why. Erik certainly was not being hostile to you. Hopefully you can take a more dispassionate position when you a

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Erik
On 03/04/16 22:49, Loop.IO wrote: You now seem to be on some sort of rampage I offered you some valuable advice. *plonk* E. -- https://mail.python.org/mailman/listinfo/python-list

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 10:27:16 PM UTC+1, Erik wrote: > Loop.IO: > > On 03/04/16 21:25, Loop.IO wrote: > > On Sunday, April 3, 2016 at 9:15:22 PM UTC+1, Erik wrote: > >> On 03/04/16 20:54, Loop.IO wrote: > >>> The original post said what did happen, the code runs and hangs on > >>> the create

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Erik
Loop.IO: On 03/04/16 21:25, Loop.IO wrote: On Sunday, April 3, 2016 at 9:15:22 PM UTC+1, Erik wrote: On 03/04/16 20:54, Loop.IO wrote: The original post said what did happen, the code runs and hangs on the create file, and once i press Enter it then finishes and creates the file, not sure how

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 9:21:44 PM UTC+1, BartC wrote: > On 03/04/2016 20:36, Loop.IO wrote: > > On Sunday, April 3, 2016 at 8:32:06 PM UTC+1, Loop.IO wrote: > > >> The issue is that it hangs, there is no error. its like it pauses until i > >> press enter, ill try what you've posted one momen

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 9:15:22 PM UTC+1, Erik wrote: > On 03/04/16 20:54, Loop.IO wrote: > > The original post said what did happen, the code runs and hangs on > > the create file, and once i press Enter it then finishes and creates > > the file, not sure how you missed that but thanks > > Ye

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread BartC
On 03/04/2016 20:36, Loop.IO wrote: On Sunday, April 3, 2016 at 8:32:06 PM UTC+1, Loop.IO wrote: The issue is that it hangs, there is no error. its like it pauses until i press enter, ill try what you've posted one momen Ok the Bartc code gives me an error. This is confusing! I know you

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Erik
On 03/04/16 20:54, Loop.IO wrote: The original post said what did happen, the code runs and hangs on the create file, and once i press Enter it then finishes and creates the file, not sure how you missed that but thanks Yes, I read your original post. That was days ago. The comment I was reply

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 8:49:28 PM UTC+1, Erik wrote: > Hi Loop.IO, > > On 03/04/16 15:41, Loop.IO wrote: > >> If you don't want the user to enter anything, then I explained how > >> before, just use: > >> > >>name='C:\\Documents\\PythonCoding\\launch2.bat' > >> > >> if that's the file

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 1:38:48 AM UTC+1, Mark Lawrence wrote: > On 03/04/2016 01:12, BartC wrote: > > On 02/04/2016 23:31, Loop.IO wrote: > > > >> Oh i see, so the code prompts for a name.. so i'm more lost than i > >> thought, what do I need to change to make it just create the file with > >>

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Michael Selik
How do you know when you're done typing the name of the file? It's hard to get tone right on the internet, so I'll clarify: this is not a rhetorical question and I mean you, LoopIO, not a generic person. On Sun, Apr 3, 2016, 8:40 PM Loop.IO wrote: > On Sunday, April 3, 2016 at 8:32:06 PM UTC+1,

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Erik
Hi Loop.IO, On 03/04/16 15:41, Loop.IO wrote: If you don't want the user to enter anything, then I explained how before, just use: name='C:\\Documents\\PythonCoding\\launch2.bat' if that's the file name you need. -- Bartc Hi Bartc, i tried that, didn't work FYI, for the future. Te

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 8:32:06 PM UTC+1, Loop.IO wrote: > On Sunday, April 3, 2016 at 4:11:49 PM UTC+1, BartC wrote: > > On 03/04/2016 15:41, Loop.IO wrote: > > > On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: > > >> On 02/04/2016 23:31, Loop.IO wrote: > > >> > > >>> Oh i see, so t

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 4:11:49 PM UTC+1, BartC wrote: > On 03/04/2016 15:41, Loop.IO wrote: > > On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: > >> On 02/04/2016 23:31, Loop.IO wrote: > >> > >>> Oh i see, so the code prompts for a name.. so i'm more lost than i > >>> thought, what

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread BartC
On 03/04/2016 16:25, Rustom Mody wrote: On Sunday, April 3, 2016 at 8:41:49 PM UTC+5:30, BartC wrote: You can create the path manually outside of Python. Or look up the docs to find out how to do that. A quick google suggested using os.makedirs (to create multiple nested paths at the same time

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 8:41:49 PM UTC+5:30, BartC wrote: > On 03/04/2016 15:41, Loop.IO wrote: > > On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: > >> On 02/04/2016 23:31, Loop.IO wrote: > >> > >>> Oh i see, so the code prompts for a name.. so i'm more lost than i > >>> thought, w

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread BartC
On 03/04/2016 15:41, Loop.IO wrote: On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: On 02/04/2016 23:31, Loop.IO wrote: Oh i see, so the code prompts for a name.. so i'm more lost than i thought, what do I need to change to make it just create the file with the chosen name Launch2

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 1:08:59 AM UTC+1, Mark Lawrence wrote: > On 02/04/2016 23:23, Loop.IO wrote: > > On Saturday, April 2, 2016 at 11:09:13 PM UTC+1, 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

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: > On 02/04/2016 23:31, Loop.IO wrote: > > > Oh i see, so the code prompts for a name.. so i'm more lost than i thought, > > what do I need to change to make it just create the file with the chosen > > name Launch2.bat without the prompt?

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread Mark Lawrence via Python-list
On 03/04/2016 01:12, BartC wrote: On 02/04/2016 23:31, Loop.IO wrote: Oh i see, so the code prompts for a name.. so i'm more lost than i thought, what do I need to change to make it just create the file with the chosen name Launch2.bat without the prompt? If you don't want the user to enter a

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread Mark Lawrence via Python-list
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 wrote: On 02/04/2016 23:16, Ned Batch

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread BartC
On 02/04/2016 23:31, Loop.IO wrote: Oh i see, so the code prompts for a name.. so i'm more lost than i thought, what do I need to change to make it just create the file with the chosen name Launch2.bat without the prompt? If you don't want the user to enter anything, then I explained how be

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread Mark Lawrence via Python-list
On 02/04/2016 23:23, Loop.IO wrote: On Saturday, April 2, 2016 at 11:09:13 PM UTC+1, 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

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread Michael Selik
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 wrote: > On 02/04/2016 23:16, Ned Batchelder wrote: > > On Saturday, April 2, 2016

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread Loop.IO
On Saturday, April 2, 2016 at 11:27:49 PM UTC+1, BartC 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

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread BartC
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 issu

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread Loop.IO
On Saturday, April 2, 2016 at 11:09:13 PM UTC+1, 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

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread Ned Batchelder
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

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread BartC
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 pr

[Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread Loop.IO
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,