<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.randomness.nu/mediawiki/index.php?action=history&amp;feed=atom&amp;title=displaytoggle.py</id>
	<title>displaytoggle.py - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.randomness.nu/mediawiki/index.php?action=history&amp;feed=atom&amp;title=displaytoggle.py"/>
	<link rel="alternate" type="text/html" href="https://wiki.randomness.nu/mediawiki/index.php?title=displaytoggle.py&amp;action=history"/>
	<updated>2026-05-24T23:56:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.randomness.nu/mediawiki/index.php?title=displaytoggle.py&amp;diff=68&amp;oldid=prev</id>
		<title>Derg: Derg moved page Displaytoggle.py to displaytoggle.py without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://wiki.randomness.nu/mediawiki/index.php?title=displaytoggle.py&amp;diff=68&amp;oldid=prev"/>
		<updated>2024-09-12T12:50:56Z</updated>

		<summary type="html">&lt;p&gt;Derg moved page &lt;a href=&quot;/mediawiki/index.php?title=Displaytoggle.py&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Displaytoggle.py (page does not exist)&quot;&gt;Displaytoggle.py&lt;/a&gt; to &lt;a href=&quot;/displaytoggle.py&quot; title=&quot;displaytoggle.py&quot;&gt;displaytoggle.py&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:50, 12 September 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Derg</name></author>
	</entry>
	<entry>
		<id>https://wiki.randomness.nu/mediawiki/index.php?title=displaytoggle.py&amp;diff=12&amp;oldid=prev</id>
		<title>Derg: Created page with &quot;&lt;syntaxhighlight lang=&quot;python&quot;&gt; #!/usr/bin/python3 import win32api, win32con, argparse  screenid = 1  a = argparse.ArgumentParser() a.add_argument(&#039;on&#039;, nargs=&quot;?&quot;, default=False, type=lambda x: x.lower() not in (&quot;false&quot;, &quot;0&quot;, &quot;off&quot;)) b = a.parse_args()  screenstring = f&quot;\\\\.\\DISPLAY{screenid:d}&quot;  if b.on:     win32api.ChangeDisplaySettingsEx(screenstring, None) else:     s = win32api.EnumDisplaySettings(screenstring, win32con.ENUM_CURRENT_SETTINGS)     s.PelsWidth = 0...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.randomness.nu/mediawiki/index.php?title=displaytoggle.py&amp;diff=12&amp;oldid=prev"/>
		<updated>2024-09-09T19:42:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt; #!/usr/bin/python3 import win32api, win32con, argparse  screenid = 1  a = argparse.ArgumentParser() a.add_argument(&amp;#039;on&amp;#039;, nargs=&amp;quot;?&amp;quot;, default=False, type=lambda x: x.lower() not in (&amp;quot;false&amp;quot;, &amp;quot;0&amp;quot;, &amp;quot;off&amp;quot;)) b = a.parse_args()  screenstring = f&amp;quot;\\\\.\\DISPLAY{screenid:d}&amp;quot;  if b.on:     win32api.ChangeDisplaySettingsEx(screenstring, None) else:     s = win32api.EnumDisplaySettings(screenstring, win32con.ENUM_CURRENT_SETTINGS)     s.PelsWidth = 0...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
#!/usr/bin/python3&lt;br /&gt;
import win32api, win32con, argparse&lt;br /&gt;
&lt;br /&gt;
screenid = 1&lt;br /&gt;
&lt;br /&gt;
a = argparse.ArgumentParser()&lt;br /&gt;
a.add_argument(&amp;#039;on&amp;#039;, nargs=&amp;quot;?&amp;quot;, default=False, type=lambda x: x.lower() not in (&amp;quot;false&amp;quot;, &amp;quot;0&amp;quot;, &amp;quot;off&amp;quot;))&lt;br /&gt;
b = a.parse_args()&lt;br /&gt;
&lt;br /&gt;
screenstring = f&amp;quot;\\\\.\\DISPLAY{screenid:d}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if b.on:&lt;br /&gt;
    win32api.ChangeDisplaySettingsEx(screenstring, None)&lt;br /&gt;
else:&lt;br /&gt;
    s = win32api.EnumDisplaySettings(screenstring, win32con.ENUM_CURRENT_SETTINGS)&lt;br /&gt;
    s.PelsWidth = 0&lt;br /&gt;
    s.PelsHeight = 0&lt;br /&gt;
    win32api.ChangeDisplaySettingsEx(screenstring, s)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Derg</name></author>
	</entry>
</feed>