Creating continuous keystroke with python

2013-01-13 Thread Abhas Bhattacharya
I need to generate continuous keystroke with python. I have been trying with the sendkeys module, but the only command it supports is sending discrete keypresses. But I need a continous keypress, so that the other application (which in this case is a game which triggers an action only when a key

Re: Finding the name of a function while defining it

2012-12-27 Thread Abhas Bhattacharya
On Thursday, 27 December 2012 13:56:24 UTC+5:30, Chris Rebert wrote: > On Dec 25, 2012 6:06 PM, "Abhas Bhattacharya" wrote: > > > > > > While I am defining a function, how can I access the name (separately as > > string as well as object) of the function w

Re: Finding the name of a function while defining it

2012-12-27 Thread Abhas Bhattacharya
On Thursday, 27 December 2012 13:33:34 UTC+5:30, Mitya Sirenef wrote: > > How about defining a function that prints value and then calls a function? > > > > def call(func_name): > >print(mydict[func_name]) > >globals()[func_name]() > > > > > > You could also define a custom clas

Re: Finding the name of a function while defining it

2012-12-27 Thread Abhas Bhattacharya
On Thursday, 27 December 2012 13:22:45 UTC+5:30, Chris Angelico wrote: > On Thu, Dec 27, 2012 at 6:46 PM, Abhas Bhattacharya > > wrote: > > > [ a whole lot of double-spaced quoted text - please trim it ] > > > If i call one() and two() respectively, i would

Re: Simple audio library

2012-12-27 Thread Abhas Bhattacharya
On Wednesday, 26 December 2012 09:46:10 UTC+5:30, Xantipius wrote: > On Dec 26, 5:07 am, Abhas Bhattacharya > > wrote: > > > Which simple python audio library will you suggest for low level audio > > creation (for eg I want to create tones of different intens

Re: Finding the name of a function while defining it

2012-12-26 Thread Abhas Bhattacharya
On Thursday, 27 December 2012 13:18:19 UTC+5:30, Chris Angelico wrote: > On Thu, Dec 27, 2012 at 6:26 PM, Abhas Bhattacharya > > wrote: > > > During run-time, I can always use: function_name.__name__ (although that's > > kind of lame because it returns "fu

Re: Finding the name of a function while defining it

2012-12-26 Thread Abhas Bhattacharya
On Thursday, 27 December 2012 10:22:15 UTC+5:30, Tim Roberts wrote: > Abhas Bhattacharya wrote: > > > > > >While I am defining a function, how can I access the name (separately as > > >string as well as object) of the function without explicitly naming

Re: Finding the name of a function while defining it

2012-12-26 Thread Abhas Bhattacharya
On Thursday, 27 December 2012 11:14:36 UTC+5:30, Chris Angelico wrote: > On Thu, Dec 27, 2012 at 3:52 PM, Tim Roberts wrote: > > > The > > > compiled code in a function, for example, exists as an object without a > > > name. That unnamed object can be bound to one or more function names, but

Re: Finding the name of a function while defining it

2012-12-26 Thread Abhas Bhattacharya
On Wednesday, 26 December 2012 08:41:28 UTC+5:30, Roy Smith wrote: > In article , > > Abhas Bhattacharya wrote: > > > > > While I am defining a function, how can I access the name (separately as > > > string as well as object) of the function without

Simple audio library

2012-12-25 Thread Abhas Bhattacharya
Which simple python audio library will you suggest for low level audio creation (for eg I want to create tones of different intensities and frequency continously and then record the whole sequence)? (Although a minimal audio library is ok, it would be better if you can tell me about a full-fledg