Wrapper for Notepad++ messages and notifications

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
toralf
Posts: 868
Joined: 27 Apr 2014, 21:08
Location: Germany

Wrapper for Notepad++ messages and notifications

20 Aug 2018, 01:26

Dear all,

I have been using PSPad in the past and would like to switch to notepad++. But since a few features are missing in notepad++ that I would need, i’m planing on automate Notepad++. But I’m not very good at messages . Therefore, I’m looking for wrappers or a class that I could use as a basis to communicate with notepad++.

I saw that VismundCygnus has a function to get the current path of file from notepad++ via message.
Do you have wrappers or a class for the other messages that notepad++ offers and would like to share them/it?
Or maybe supporting me to write them?

The messages of notepad++ can ne found here

Many thanks in advance.
Toralf
ciao
toralf
User avatar
TheDewd
Posts: 1513
Joined: 19 Dec 2013, 11:16
Location: USA

Re: Wrapper for Notepad++ messages and notifications

21 Aug 2018, 09:42

FYI -- Notepad++ has an 'ActiveX Plugin' available for download. You will be able to easily control it with DllCall & AutoHotkey.

I don't know how much is supported by the plugin, but it might do what you want...
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Wrapper for Notepad++ messages and notifications

21 Aug 2018, 10:12

- I don't personally use Notepad++ very much, but here are a few links for anyone interested in automating it.
- @toralf: I would recommend mentioning any/all desired features explicitly. It could be a good checklist for a Notepad++ library and for other IDEs.

- Notepad++ uses Scintilla controls, there are multiple messages listed here:
Scintilla Documentation
https://www.scintilla.org/ScintillaDoc. ... alMessages
- There are a few functions beginning with 'JEE_Sci' for getting/setting Scintilla control text.
GUIs via DllCall: get/set internal/external control text - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?t=40514

- Of course, you can invoke menu items:
Get Info from Context Menu (x64/x32 compatible) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=31971

- Here is VismundCygnus's post, and a link I found based on it. [EDIT: You linked both of these above.]
Notepad++: get path - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=54267
Messages And Notifications - Notepad++ Wiki
http://docs.notepad-plus-plus.org/index ... ifications
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
toralf
Posts: 868
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: Wrapper for Notepad++ messages and notifications

21 Aug 2018, 16:16

TheDewd wrote:FYI -- Notepad++ has an 'ActiveX Plugin' available for download.
Good idea, but you need to register the activeX for which You need admin rights AFAIK, which I do not have on my company pc...
ciao
toralf
toralf
Posts: 868
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: Wrapper for Notepad++ messages and notifications

21 Aug 2018, 16:34

jeeswg wrote: - @toralf: I would recommend mentioning any/all desired features explicitly. It could be a good checklist for a Notepad++ library and for other IDEs.
Thanks jeeswg, my biggest dream is to create an AHK controlled project manager for notepad++. The integrated project views of notepad++ are way to simple. In combination with NppExec they can do a lot, but not what I am looking for (or was usd to in PSPad).
An AHK controlled project manager in notepad++ could help is several ways,
- make use of Hotkeys notepad++ doesn’t allow
- set a main script to run for a project
- start non AHK files in their native apps
- scan project files for global vars and functions
- search within project files (which can be scattered in different locations)
- context menus, toolbar etc to operate on the project

The problem is to imitate a plugin dll and get an AHK gui behave as being part of notepad++.
ciao
toralf

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 277 guests