Last active
August 18, 2019 08:32
-
-
Save udoprog/72ec6058ae95c53e16751b442f47731d to your computer and use it in GitHub Desktop.
AHK script to toggle between two different FPS limits in RTSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Inputs two different FPS values into RivaTunerStatisticsServer when toggled. | |
#SingleInstance force | |
values := [144, 116] | |
stage := 1 | |
focus_row := 1 | |
FOCUS_TOP := 163 | |
FOCUS_LEFT := 18 | |
FOCUS_ROW_HEIGHT := 16 | |
PgUp:: | |
{ | |
; focus the correct item in RTSS | |
focus_x := FOCUS_TOP + FOCUS_ROW_HEIGHT * focus_row | |
focus_y := FOCUS_LEFT | |
ControlClick,x%focus_x% y%focus_x%,RivaTunerStatisticsServer | |
; change framerate limit | |
value := values[stage] | |
stage := Mod(stage, values.MaxIndex()) + 1 | |
ControlClick,x480 y230,RivaTunerStatisticsServer | |
ControlSend,ahk_parent,%value%{enter},RivaTunerStatisticsServer | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment