Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Improved AutoHotkey UWP roblox cursor fix
- -- AutoHotKey required https://www.autohotkey.com/
- -- F6 to toggle
- #Persistent
- #NoEnv
- Toggle := false
- F6::
- Toggle := !Toggle
- If (Toggle)
- {
- SetTimer, PreventGlitch, 1
- }
- Else
- {
- SetTimer, PreventGlitch, Off
- }
- Return
- PreventGlitch:
- if (Toggle && GetKeyState("RButton", "P") && !IsTeleporting)
- {
- IsTeleporting := true
- MouseGetPos, StartX, StartY
- While GetKeyState("RButton", "P")
- {
- Sleep, 1
- }
- MouseGetPos, EndX, EndY
- DllCall("SetCursorPos", "int", EndX, "int", EndY)
- Sleep, 1
- DllCall("SetCursorPos", "int", StartX, "int", StartY)
- IsTeleporting := false
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement