More actions
Combined display of all available logs of Randomness wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 20:42, 9 September 2024 Derg talk contribs created page Displaytoggle.py (Created page with "<syntaxhighlight lang="python"> #!/usr/bin/python3 import win32api, win32con, argparse screenid = 1 a = argparse.ArgumentParser() a.add_argument('on', nargs="?", default=False, type=lambda x: x.lower() not in ("false", "0", "off")) b = a.parse_args() screenstring = f"\\\\.\\DISPLAY{screenid:d}" if b.on: win32api.ChangeDisplaySettingsEx(screenstring, None) else: s = win32api.EnumDisplaySettings(screenstring, win32con.ENUM_CURRENT_SETTINGS) s.PelsWidth = 0...")