awesome/tests/examples/text/root/fake_click.lua

10 lines
245 B
Lua
Raw Normal View History

2018-07-21 20:25:06 +02:00
--DOC_NO_USAGE --DOC_ASTERISK
local function click(button_id, x, y)
mouse.coords {x = x, y = y}
root.fake_input("button_press" , button_id)
root.fake_input("button_release", button_id)
end
--DOC_NEWLINE
click(1, 42, 42)