python - XDOTOOL won't pass clicks to a particular window -


just having problems xdotool here - great program, unfortunately hasn't been behaving.

from tkinter import * import os  class ed:  def __init__(self,parent):     self.button = button(parent,command=self.passthrough)     self.button.pack()     parent.geometry('+100+100')   def passthrough(self):      print 'clicked'      os.popen("""      window=$(xdotool selectwindow click)      xdotool mousemove 110 140      xdotool click --window $window      """)  root = tk() app = ed(root) root.mainloop() 

the program supposed render window button in it. when button clicked, cursor changes , move mouse off window , click on window behind (eg gimp). mouse goes on button, clicks through program behind. however, not doing that. apologies in advance, hard idea describe.

i greatful can provide.

cheers!

in line "xdotool click --window $window", must written "xdotool click --window $window 1" 1 mousebutton click.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -