opus-nt/mods/[all]/disable accessibility key combos/modscript.py

8 lines
571 B
Python
Raw Normal View History

2021-03-19 02:44:27 +00:00
for reg in regs:
if not reg.startswith("user-"): continue
user = opusnt.regTmpPath + reg
opusnt.runReg(["add",user + "\\Control Panel\\Accessibility\\Keyboard Response","/v","Flags","/t","REG_SZ","/d","112","/f"])
opusnt.runReg(["add",user + "\\Control Panel\\Accessibility\\MouseKeys","/v","Flags","/t","REG_SZ","/d","58","/f"])
opusnt.runReg(["add",user + "\\Control Panel\\Accessibility\\StickyKeys","/v","Flags","/t","REG_SZ","/d","442","/f"])
opusnt.runReg(["add",user + "\\Control Panel\\Accessibility\\ToggleKeys","/v","Flags","/t","REG_SZ","/d","58","/f"])