File: fake_click.lua

package info (click to toggle)
awesome 4.3-8.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,468 kB
  • sloc: ansic: 14,508; sh: 526; makefile: 46
file content (9 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
--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)