Lua:mouse event

From Cheat Engine
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)