Exemplo n.º 1
0
    def __init__(self):
        threading.Thread.__init__(self)

        self.disp = display.Display()
        self.root = self.disp.screen().root

        #Init xkey
        self.xkey = xkey(self.disp)
        #print self.xkey.mask_permutations

        # we tell the X server we want to catch keyPress event
        # self.root.change_attributes(event_mask = X.KeyPressMask)
        self.daemon = True
        self.running = True
        self.start()
Exemplo n.º 2
0
    def __init__(self):
        threading.Thread.__init__(self)

        self.disp = display.Display()
        self.root = self.disp.screen().root

        # Init xkey
        self.xkey = xkey(self.disp)
        # print self.xkey.mask_permutations

        # we tell the X server we want to catch keyPress event
        # self.root.change_attributes(event_mask = X.KeyPressMask)
        self.daemon = True
        self.running = True
        self.start()
Exemplo n.º 3
0
import xkey
from Xlib import display



key = xkey.xkey(display.Display())
p = key.mask_permutations(0b10000001, 0b01111011)
for x in p:
	print "%s" % bin(x)
Exemplo n.º 4
0
import xkey
from Xlib import display

key = xkey.xkey(display.Display())
p = key.mask_permutations(0b10000001, 0b01111011)
for x in p:
    print "%s" % bin(x)