NotePad++ Setup help needed (Masterfile)

Discuss features, issues, about Editors for AHK
toralf
Posts: 506
Joined: 27 Apr 2014, 21:08
Location: Germany

NotePad++ Setup help needed (Masterfile)

31 Jul 2018, 18:04

I'm trying to switch from PSPad to Notepad++ v7.5.8 (32bit) for AutoHotkey 1.1.29.01 (32bit, Unicode).
But I have some issues to set up Notepad to have similar features like PSPad.

- How to specify a "master" script that gets executed/run on a hotkey even when another file from a project is currently shown (active file) in NPP

Are there NPP users out there that could assist with this issue?
Are there other ways with NPP to achieve a similar result?

What I still want to look into is:
extending Auto-Completion of whole commands and parameters
- Hotstrings by Helgef
- Inster AHK Command by Boiler
- a script i can't remember the name of by majkinetor
Last edited by toralf on 02 Aug 2018, 15:23, edited 8 times in total.
ciao
toralf
toralf
Posts: 506
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: NotePad++ Setup help needed (DBGp, Run with feedback, Masterfile)

01 Aug 2018, 00:26

On these topics I was able to succeed on.

I was able to set up NPP for AHK
- Setup Notepad++ for AutoHotkey by jNizM (Syntaxhighlighting, Auto-Completion)
- Function list (modification of existing XML)
- Run Script or Selection
- MsgBox Creator by boiler

And to install and use these plugins
- Language help
- Code alignment
- Explorer
- Task List
- TextFX
- RunMe

These build-in features I found useful (so far)
- Project Management (build in function)
- toggle comment line (via shortcut)
- duplicate lines (via shortcut)
- move lines up/down (via shortcut)
- RunScript (via executable)
ciao
toralf
toralf
Posts: 506
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: NotePad++ Setup help needed (DBGp, Run with feedback, Masterfile)

02 Aug 2018, 04:25

I got the DBGp plugin working (at least a Little)
This Video helped me to get startet.
The Problem I now have is that when I rund AHK NPP give me the error:

Code: Select all

List index out of bounds (0)
I ahve posted the error on NPP sites, hoping someone can help. Any idea what I could do until then?

For Running a AHK script with

Code: Select all

/ErrorStdOut
I plan on checking out NPPExec, it seems to be the right tool for it.
ciao
toralf
toralf
Posts: 506
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: NotePad++ Setup help needed (Masterfile)

02 Aug 2018, 15:29

I found the reason for my issue with DBGp. I had a german AE = “Ä” in the path of the script. Without that character in the path DBGp works as expected.

An I also got NPPExec to do the Thing as I wanted. This Little NPPExec Script does the job

Code: Select all

// keep the Console window
NPP_CONSOLE ?

// disable any output to the Console
NPP_CONSOLE -  

// save current file
NPP_SAVE

// go to directory of the current file
cd $(CURRENT_DIRECTORY) 

// enable output to the Console
NPP_CONSOLE +  

// clear Console screen
CLS

// show Console window
NPP_CONSOLE 1

// run script with /ErrorStdOut
"C:\Path-To-AutoHotkey\AutoHotkey.exe" /ErrorStdOut "$(FULL_CURRENT_PATH)"

// disable any output to the Console
NPP_CONSOLE - 

// check exit code of the last executed child process
If $(EXITCODE) = 0 
	// when successfull hide console window
	NPP_CONSOLE 0 
ENDIF
And these two Highlighter in the Console Output Filters of NPPExec

Code: Select all

%ABSFILE% (%LINE%) : ==> *

     Specifically: *
(set Color and/or style to your liking)
Allow me to Highlight the code that might be wrong and to jump to the correct line in that file.
ciao
toralf

Return to “Editors”

Who is online

Users browsing this forum: No registered users and 2 guests