-
-
Save webstandardcss/bc88ef112b31f808cff3be21565058a5 to your computer and use it in GitHub Desktop.
(autohotkey) - change, restore or reset various built-in script settings
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
/* | |
[built-in defaults] | |
a_autoTrim = on | |
a_batchLines = 10ms | |
a_controlDelay = 20 | |
a_coordModeCaret = screen | |
a_coordModeMenu = screen | |
a_coordModeMouse = screen | |
a_coordModePixel = screen | |
a_coordModeToolTip = screen | |
a_defaultMouseSpeed = 2 | |
a_detectHiddenText = on | |
a_detectHiddenWindows = off | |
a_isCritical = off | |
a_sendMode = event | |
a_stringCaseSense = off | |
a_titleMatchMode = 1 | |
a_titleMatchModeSpeed = fast | |
a_winDelay = 100 | |
clipboard = | |
*/ | |
built_in(bi_name, bi_value="") { | |
global | |
if (bi_value = "restore") or (bi_value = "r") | |
bi_value := restore_%bi_name% | |
else if (bi_value = "default") or (bi_value = "d") | |
iniRead, bi_value, % a_lineFile, built-in defaults, % bi_name | |
else restore_%bi_name% := %bi_name% ; else save the current value | |
if (bi_name = "a_autoTrim") | |
autoTrim, % bi_value | |
else if (bi_name = "a_batchLines") | |
setBatchLines, % bi_value | |
else if (bi_name = "a_controlDelay") | |
setControlDelay, % bi_value | |
else if (bi_name = "a_coordModeCaret") | |
coordMode, caret, % bi_value | |
else if (bi_name = "a_coordModeMenu") | |
coordMode, menu, % bi_value | |
else if (bi_name = "a_coordModeMouse") | |
coordMode, mouse, % bi_value | |
else if (bi_name = "a_coordModePixel") | |
coordMode, pixel, % bi_value | |
else if (bi_name = "a_coordModeToolTip") | |
coordMode, toolTip, % bi_value | |
else if (bi_name = "a_defaultMouseSpeed") | |
setDefaultMouseSpeed, % bi_value | |
else if (bi_name = "a_detectHiddenText") | |
detectHiddenText, % bi_value | |
else if (bi_name = "a_detectHiddenWindows") | |
detectHiddenWindows, % bi_value | |
else if (bi_name = "a_isCritical") | |
critical, % bi_value | |
else if (bi_name = "a_isPaused") | |
pause, % bi_value | |
else if (bi_name = "a_stringCaseSense") | |
stringCaseSense, % bi_value | |
else if (bi_name = "a_titleMatchMode") or (bi_name = "a_titleMatchModeSpeed") | |
setTitleMatchMode, % bi_value | |
else if (bi_name = "a_winDelay") | |
setWinDelay, % bi_value | |
else if (bi_name = "clipboard") | |
clipboard := bi_value | |
} | |
/* | |
[built_in] | |
version = 1.2 | |
description = change, restore or reset various built-in script settings | |
author = davebrny | |
source = https://gist.github.com/davebrny/02167ebb09cedfb922f875917c23b26b | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment