[BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Narendra Sisodiya
In my application, I need to move mouse-pointer and generate click event. I am not making any GUI application. mouse and click event will be trigger on dekstop. Quick and dirty way to do this import os def move_mouse(x,y): os.system('xdotool mousemove ' + str(x) + ' ' + str(y)) def

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Narendra Sisodiya
On Fri, Jan 7, 2011 at 4:48 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: You should be using ncurses for applications like this which need mouse positions (x,y) on the console. http://pyncurses.sourceforge.net/ What will be the difference ? can I use pyncurses to generate global

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Anand Balachandran Pillai
On Fri, Jan 7, 2011 at 4:54 PM, Narendra Sisodiya naren...@narendrasisodiya.com wrote: On Fri, Jan 7, 2011 at 4:48 PM, Anand Balachandran Pillai abpil...@gmail.com wrote: You should be using ncurses for applications like this which need mouse positions (x,y) on the console.

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Noufal Ibrahim
On Fri, Jan 07 2011, Narendra Sisodiya wrote: In my application, I need to move mouse-pointer and generate click event. I am not making any GUI application. mouse and click event will be trigger on dekstop. Is this for some kind of testing? If so, the Linux Desktop Testing Project might offer

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Noufal Ibrahim
On Fri, Jan 07 2011, Anand Balachandran Pillai wrote: You should be using ncurses for applications like this which need mouse positions (x,y) on the console. http://pyncurses.sourceforge.net/ Isn't ncurses used for CUI applications? I wasn't aware that you can control your graphical cursor

Re: [BangPypers] moving/clicking the mouse cursor using python

2011-01-07 Thread Anand Balachandran Pillai
On Fri, Jan 7, 2011 at 5:08 PM, Noufal Ibrahim nou...@gmail.com wrote: On Fri, Jan 07 2011, Anand Balachandran Pillai wrote: You should be using ncurses for applications like this which need mouse positions (x,y) on the console. http://pyncurses.sourceforge.net/ Isn't ncurses used for