Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Excludes stupid values' usage
- Clamp(num, min, max)
- {
- return num > max ? max : num < min ? min : num
- }
- MouseMove(move_x, move_y)
- {
- DllCall("mouse_event", "UInt", 1, "Int", move_x, "Int", move_y, "UInt", 0, "Int", 0)
- return
- }
- ; Accurate values
- minSleepTime := Clamp(Round(1000 / fps), 1, 60)
- gScreen := Array( Ceil(A_ScreenWidth), Ceil(A_ScreenHeight) )
- gScreenCenter := Array( Ceil(A_ScreenWidth / 2), Ceil(A_ScreenHeight / 2) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement