Lua:mouse event

From Cheat Engine
Revision as of 00:21, 28 August 2020 by Ajanuw (talk | contribs) (Created page with "<div> The Windows' API "mouse_event". https://msdn.microsoft.com/en-us/library/windows/desktop/ms646260(v=vs.85).aspx </div> <pre> setMousePos(659,573) mouse_event(MOUSEEV...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Windows' API "mouse_event". https://msdn.microsoft.com/en-us/library/windows/desktop/ms646260(v=vs.85).aspx

  setMousePos(659,573)
  mouse_event(MOUSEEVENTF_LEFTDOWN)
  sleep(20)
  mouse_event(MOUSEEVENTF_LEFTUP)