Untitled
unknown
lua
3 years ago
886 B
8
Indexable
if hk then hk.destroy() hk=nil end hk=createHotkey(function() if getForegroundProcess()==getOpenedProcessID() then --do the mouse wheel up when UP arrow is pressed mouse_event(MOUSEEVENTF_WHEEL, 0, 0, 120, 0) --lift key just in case idk keyDown(VK_UP) -- wait until the up key is pressed while not isKeyPressed(VK_UP) do -- do nothing end end end, VK_UP) if hk2 then hk2.destroy() hk2=nil end hk2=createHotkey(function() if getForegroundProcess()==getOpenedProcessID() then --do the mouse wheel up when UP arrow is pressed mouse_event(MOUSEEVENTF_WHEEL, 0, 0, -120, 0) ---lift key just in case idk keyDown(VK_DOWN) -- wait until the down key is pressed while not isKeyPressed(VK_DOWN) do -- do nothing end end end, VK_DOWN)
Editor is loading...