Re: python-xlib question
- From: giovanni.iovino@xxxxxxxxx
- Date: Tue, 18 Dec 2007 04:45:20 -0800 (PST)
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
Xlib.ext.xtest.fake_input(display,Xlib.X.ButtonPress, button)
display.sync()
Xlib.ext.xtest.fake_input(display,Xlib.X.ButtonRelease, button)
display.sync()
bye,
Giovanni
.
- References:
- python-xlib question
- From: giovanni . iovino
- python-xlib question
- Prev by Date: Re: Please simply answer this question and don't second guess my reason for asking it
- Next by Date: Re: Please simply answer this question and don't second guess my reason for asking it
- Previous by thread: python-xlib question
- Next by thread: Please simply answer this question and don't second guess my reason for asking it
- Index(es):