<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Presentation mode?]]></title><description><![CDATA[<p dir="auto">Is there a way to get Notepad++ to enter presentation mode? I would like to stop the screensaver kicking in all the time (IT set it to 5 minutes and I cannot change it). Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22214/presentation-mode</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 20:29:21 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22214.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Dec 2021 16:31:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Presentation mode? on Fri, 03 Dec 2021 18:30:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/23839">@roweryan</a> said in <a href="/post/71834">Presentation mode?</a>:</p>
<blockquote>
<p dir="auto">Maybe this could make it to mainline np++ one day</p>
</blockquote>
<p dir="auto">It seems perfect as an add-on script.<br />
Glad that it works for you.</p>
<p dir="auto">Now you have a reason to never exit N++.<br />
If you need such a reason.<br />
:-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71835</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71835</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 03 Dec 2021 18:30:16 GMT</pubDate></item><item><title><![CDATA[Reply to Presentation mode? on Fri, 03 Dec 2021 18:25:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> it is working thank you.</p>
<p dir="auto">Maybe this could make it to mainline np++ one day :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71834</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71834</guid><dc:creator><![CDATA[roweryan]]></dc:creator><pubDate>Fri, 03 Dec 2021 18:25:44 GMT</pubDate></item><item><title><![CDATA[Reply to Presentation mode? on Wed, 01 Dec 2021 20:01:29 GMT]]></title><description><![CDATA[<p dir="auto">So, as I often do, I grabbed the jiggler script I use, and I cleaned it up for forum posting.  The script runs via the PythonScript plugin and executes behind the scenes whenever your Notepad++ is running, preventing your computer from entering screensaver/sleep mode.</p>
<p dir="auto">Curiously, I notice if I have Visual Studio IDE running in addition to Notepad++, my computer WILL sleep after the I.T. prescribed timeout – I have no idea why this is.</p>
<p dir="auto">Here’s <code>MouseJiggleDaemon.py</code>:</p>
<pre><code class="language-z"># -*- coding: utf-8 -*-

import ctypes
from ctypes import Structure, c_uint, sizeof, byref, POINTER, c_int
from ctypes.wintypes import DWORD, LONG
import threading
import time

ULONG_PTR = ctypes.POINTER(DWORD)

INPUT_MOUSE          = 0
MOUSEEVENTF_ABSOLUTE = 0x8000
MOUSEEVENTF_MOVE     = 0x0001

class MOUSEINPUT(ctypes.Structure):
    _fields_ = (
        ('dx', LONG),
        ('dy', LONG),
        ('mouseData', DWORD),
        ('dwFlags', DWORD),
        ('time', DWORD),
        ('dwExtraInfo', ULONG_PTR)
        )

class _INPUTunion(ctypes.Union):
    _fields_ = (
        ('mi', MOUSEINPUT),
        )

def MouseInput(flags, x, y, data): return MOUSEINPUT(x, y, data, flags, 0, None)
def Input(structure): return INPUT(INPUT_MOUSE, _INPUTunion(mi=structure))
def Mouse(flags, x=0, y=0, data=0): return Input(MouseInput(flags, x, y, data))

class INPUT(ctypes.Structure):
    _fields_ = (
        ('type', DWORD),
        ('union', _INPUTunion)
        )

def sendInput(*inputs):
    nInputs = len(inputs)
    LPINPUT = INPUT * nInputs
    pInputs = LPINPUT(*inputs)
    cbSize = ctypes.c_int(ctypes.sizeof(INPUT))
    return ctypes.windll.user32.SendInput(nInputs, pInputs, cbSize)

def sendMouseMoveDeltaXY(x, y):
    flags = MOUSEEVENTF_MOVE
    event = Mouse(flags, x, y, 0)
    return sendInput(event)

class MJD(object):

    def __init__(self):
        self.jiggle_thread = threading.Thread(target=self.jiggle_thread_function, args=(1,))
        self.jiggle_thread.daemon = True  # thread won't stop until parent ends
        self.jiggle_thread.start()

    def jiggle_thread_function(self, name):
        multiplier = 1
        while True:
            sendMouseMoveDeltaXY(multiplier, multiplier)
            multiplier *= -1
            time.sleep(5.0)  # use this so we don't continuously use CPU time

if __name__ == "__main__":
    try:
        mjd
    except NameError:
        mjd = MJD()
</code></pre>
<p dir="auto">You can set it up for automatic use by adding these two lines to your user <code>startup.py</code> file:</p>
<pre><code class="language-z">import MouseJiggleDaemon
mjd = MouseJiggleDaemon.MJD()
</code></pre>
<p dir="auto">and by configuring your PythonScript to run “at startup” by choosing this setting:</p>
<p dir="auto"><img src="https://camo.nodebb.org/c621bd6b24369c1fe615b0556422ee25eec2f99e?url=https%3A%2F%2Fi.imgur.com%2F4XVeegK.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/71772</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71772</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 01 Dec 2021 20:01:29 GMT</pubDate></item><item><title><![CDATA[Reply to Presentation mode? on Wed, 01 Dec 2021 16:41:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/23839">@roweryan</a></p>
<p dir="auto">Ah, those I.T. clowns…always doing dumb things.</p>
<p dir="auto">Sounds like what you need is a mouse-jiggler.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71768</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71768</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 01 Dec 2021 16:41:26 GMT</pubDate></item></channel></rss>