Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnEvent(event, arg)
- local Delay = function () Sleep(math.random(30, 400)) end
- local m_tbl = {
- [1] = function () OutputLogMessage("[1] - LMB\n") end,
- [2] = function () OutputLogMessage("[2] - RMB\n") end,
- -- Ctrl + A
- [3] = function ()
- PressKey(0x11d)
- PressAndReleaseKey("a")
- ReleaseKey(0x11d)
- end,
- [4] = function ()
- PressKey(0x2a)
- PressAndReleaseKey("o")
- Delay()
- PressAndReleaseKey("p")
- Delay()
- PressAndReleaseKey(0x39, 0x4a, 0x39)
- Delay()
- PressAndReleaseKey("h")
- Delay()
- PressAndReleaseKey("u")
- Delay()
- PressAndReleaseKey("i", 0x39)
- ReleaseKey(0x2a)
- end,
- [5] = function ()
- end,
- [6] = function ()
- end
- }
- if (event == "PROFILE_ACTIVATED") then
- EnablePrimaryMouseButtonEvents(1)
- end
- if (event == "MOUSE_BUTTON_PRESSED") then
- m_tbl[arg]()
- end
- --OutputLogMessage("event = %s, arg = %s\n", event, arg)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement