

- #Akelpad bug report how to
- #Akelpad bug report install
- #Akelpad bug report software
- #Akelpad bug report windows
(If it doesn’t default to the %AppData%\Notepad++\Plugins\Config\PythonScript\scripts directory, make sure you choose that directory but for a fresh installation of PythonScript, it should default there)
#Akelpad bug report install
Install PythonScript plugin (use Plugins Admin to install it).
#Akelpad bug report how to
I still have no idea how to use this script # to run from startup.py, put these lines (uncommented) in that file: Return (user32.GetAsyncKeyState(VK_SHIFT) & 0x8000) != 0 If retval: retval = self.orig_npp_wnd_proc(hwnd, msg, wParam, lParam) Retval = False # set to False if we don't want further processing of this message SendMessageW(hwnd, WM_SYSCOMMAND, SC_MINIMIZE, 0) If msg = WM_CLOSE and not self.shift_held(): Self.orig_npp_wnd_proc = SetWindowLong(notepad.hwnd, GWL_WNDPROC, self.new_npp_wnd_proc_hook_for_SetWindowLong)ĭef new_npp_wnd_proc_hook(self, hwnd, msg, wParam, lParam): Self.new_npp_wnd_proc_hook_for_SetWindowLong = WndProcType(self.new_npp_wnd_proc_hook) SetWindowLong = user32.SetWindowLongW if running_32bit else user32.SetWindowLongPtrW Running_32bit = platform.architecture() = '32bit' Wintypes.HWND, wintypes.UINT, wintypes.WPARAM, wintypes.LPARAM # arguments Notepad.hwnd = user32.FindWindowW(u'Notepad++', None) I call the script ExitNppMinimizesToSystemTray.py and here is its code: # -*- coding: utf-8 -*. To truly quit Notepad++, hold the Shift key while pressing the X. Here is a PythonScript that will minimize Notepad++ to the system tray (if Notepad++ is so configured in its Preferences) when the upper-right X button is pressed. Pausing or closing the macro are standard. The AutoHotkey script itself can have an icon in the system tray, and probably some customised menu options.

And I think that can be as minimised, if that’s your preference. So by the time you realise that you accidentally closed it, it is already coming back. In your case, this could automatically start Notepad++. It’s not very complicated - at least not that part.

So, about once a second, if FITALY is not running, my macro starts FITALY. I think that one issue that I had was that I accidentally closed FITALY instead of minimising it or maybe aiming for top right of the “keyboard”.
#Akelpad bug report software
What I’ve got addresses the touch-screen keyboard software “FITALY” and imposes different behaviour on it. Let me know if you want to try it, and I’ll fetch it - though I may need my boss’s permission as well. And it doesn’t directly use the system tray. I did something that might address your situation, but it’s on my work computer and it uses the “AutoHotkey” macro scripting software. In the image below, the settings I have described will protect you when you hit the the ✗ pointed to by either of the green arrows, but not the Windows-close-application pointed to by the red arrow.Īnd as far as I know, there is no way to to make closing the last tab do the minimize to tray action.
#Akelpad bug report windows
For #2, I think you want to leave it unchecked ☐, so that when you Ctrl+W or hit the ✗ on the tab bar (or on the far right of the toolbar), it will close the file, but leave Notepad++ open.īut there isn’t anything you can do to keep the main upper-right Windows X to prevent it from closing Notepad++ – that’s a Windows-standard “close this application” which Notepad++ will not override.
