Re: python-xlib question

2007-12-18 Thread giovanni . iovino
Solved, I solved using Xtest fake_input, hoping helping other people i post the code: #!/usr/bin/env python import Xlib.display import Xlib.X import Xlib.XK import Xlib.error import Xlib.ext.xtest display = Xlib.display.Display() def mouse_click(button): #button= 1 left, 2 middle, 3 right

python-xlib question

2007-12-16 Thread giovanni . iovino
Hi, sorry for my English. I'm writing my first python script for Linux for a remote bluetooth application. I'm using python-xlib library to send keyboard and mouse events and at the moment I can send keyboard emulated input to the window where pointer is on, i can also move the pointer over the