anselmorenato / lightlang

Automatically exported from code.google.com/p/lightlang
0 stars 0 forks source link

Дополнительная проверка Spy по нажатию кнопки мыши #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Сабж при выделении.

Original issue reported on code.google.com by mdevaev@gmail.com on 21 Jan 2010 at 1:00

GoogleCodeExporter commented 9 years ago

Original comment by mdevaev@gmail.com on 26 Jan 2010 at 8:39

GoogleCodeExporter commented 9 years ago

Original comment by mdevaev@gmail.com on 26 Jan 2010 at 8:42

GoogleCodeExporter commented 9 years ago
Базовый код для проверки:

------------------------
In [1]: import Xlib, Xlib.display

In [2]: Xlib.display.Display().screen().root.query_pointer()._data
Out[2]:
{'child': <Xlib.display.Window 0x01d88632>,
 'mask': 0,
 'root': <Xlib.display.Window 0x00000106>,
 'root_x': 599,
 'root_y': 178,
 'same_screen': 1,
 'sequence_number': 6,
 'win_x': 599,
 'win_y': 178}
------------------------

Необходимое значение статуса клавиши 
мышки содержит переменная mask.

Original comment by mdevaev@gmail.com on 1 Feb 2010 at 2:40

GoogleCodeExporter commented 9 years ago

Original comment by mdevaev@gmail.com on 2 Feb 2010 at 3:08