Page 6 of 9

Re: Setup Notepad++ for AutoHotkey

Posted: 16 Oct 2017, 06:01
by majidmetal
It work, thank you very much...

Re: Setup Notepad++ for AutoHotkey

Posted: 17 Nov 2017, 10:42
by lmstearn
ry3ks3u_m4dd0ns wrote: Image
It's an aeons old design issue in N++ that this is only corrected when Global overrides on the background is selected. But that interferes with other languages one might have set up in N++ having different backgrounds.
It might be a better idea for each language to be allocated a global override check or not with an extra option for currently loaded. i.e. One may desire to "preview a theme" in the original theme without the "override for all" having unintended effects on text display.

Edit: In actual fact, for a dark themed N++ I use Hinkerlodens XML for many other languages. :P

Something happens with N++ (runas invoker) if active when closed by Windows 10 in an reboot/update. The themes in Roaming are replaced by default ones. When exactly? There's nothing in the Windows Logs to indicate abnormality and there is no log N++ has of its own. And from where do these files come from? Not the N++ application directory as the filedates are older.
Anyhow the new userDefineLang.xml has been backed up in the cloud now if that was the problem. Just to share with anyone using it that perhaps N++ requires some more refinement in that area.

Re: Setup Notepad++ for AutoHotkey

Posted: 05 Dec 2017, 15:15
by THX1138
How do you use the RegWrite code? I tried putting it into the Windows 10 Powershell and it was rejected. I tried deleting one of the two consecutive commas and I tried putting the file path in quotation marks.

Code: Select all

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Windows\system32> RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, C:\Program Files (x86)\Notepad++\no
tepad++.exe `%1
At line:1 char:60
+ RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, C:\Progr ...
+                                                            ~
Missing expression after ',' in pipeline element.
At line:1 char:60
+ RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, C:\Progr ...
+                                                            ~
Missing argument in parameter list.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingExpression

PS C:\Windows\system32> RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command, C:\Program Files (x86)\Notepad++\not
epad++.exe `%1
x86 : The term 'x86' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:79
+ ... R, AutoHotkeyScript\Shell\Edit\Command, C:\Program Files (x86)\Notepa ...
+                                                               ~~~
    + CategoryInfo          : ObjectNotFound: (x86:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command, "C:\Program Files (x86)\Notepad++\no
tepad++.exe" `%1
RegWrite : The term 'RegWrite' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command, "C:\Progr ...
+ ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (RegWrite:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>

Re: Setup Notepad++ for AutoHotkey

Posted: 05 Dec 2017, 17:28
by RiseUp
THX1138 wrote:How do you use the RegWrite code? I tried putting it into the Windows 10 Powershell and it was rejected. I tried deleting one of the two consecutive commas and I tried putting the file path in quotation marks.

Code: Select all

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Windows\system32> RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, C:\Program Files (x86)\Notepad++\no
tepad++.exe `%1
At line:1 char:60
+ RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, C:\Progr ...
+                                                            ~
Missing expression after ',' in pipeline element.
At line:1 char:60
+ RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, C:\Progr ...
+                                                            ~
Missing argument in parameter list.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingExpression

PS C:\Windows\system32> RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command, C:\Program Files (x86)\Notepad++\not
epad++.exe `%1
x86 : The term 'x86' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:79
+ ... R, AutoHotkeyScript\Shell\Edit\Command, C:\Program Files (x86)\Notepa ...
+                                                               ~~~
    + CategoryInfo          : ObjectNotFound: (x86:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command, "C:\Program Files (x86)\Notepad++\no
tepad++.exe" `%1
RegWrite : The term 'RegWrite' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command, "C:\Progr ...
+ ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (RegWrite:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
Isn't that RegWrite line of code meant for running as an AHK script to have AutoHotkey perform the registry edit?

Re: Setup Notepad++ for AutoHotkey

Posted: 05 Dec 2017, 21:53
by THX1138
RiseUp wrote:
THX1138 wrote:How do you use the RegWrite code? I tried putting it into the Windows 10 Powershell and it was rejected. I tried deleting one of the two consecutive commas and I tried putting the file path in quotation marks.

Code: Select all

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Windows\system32> RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, C:\Program Files (x86)\Notepad++\no
tepad++.exe `%1
At line:1 char:60
+ RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, C:\Progr ...
+                                                            ~
Missing expression after ',' in pipeline element.
At line:1 char:60
+ RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, C:\Progr ...
+                                                            ~
Missing argument in parameter list.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingExpression

PS C:\Windows\system32> RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command, C:\Program Files (x86)\Notepad++\not
epad++.exe `%1
x86 : The term 'x86' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:79
+ ... R, AutoHotkeyScript\Shell\Edit\Command, C:\Program Files (x86)\Notepa ...
+                                                               ~~~
    + CategoryInfo          : ObjectNotFound: (x86:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command, "C:\Program Files (x86)\Notepad++\no
tepad++.exe" `%1
RegWrite : The term 'RegWrite' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command, "C:\Progr ...
+ ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (RegWrite:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32>
Isn't that RegWrite line of code meant for running as an AHK script to have AutoHotkey perform the registry edit?
Well it doesn't work in an AHK script either.

Re: Setup Notepad++ for AutoHotkey

Posted: 06 Dec 2017, 13:01
by RiseUp
THX1138 wrote:Well it doesn't work in an AHK script either.
When you say, "it doesn't work", what happens? Do you get an error message?

Also, are you sure the path to your Notepad++ executable is correct?

Re: Setup Notepad++ for AutoHotkey

Posted: 06 Dec 2017, 15:42
by THX1138
There is no error message. When I say it doesn't work, I mean that when I choose 'edit script' from the tasktray AHK icon context menu, the script opens in MS Notepad as it does by default.

The path to the Notepad++ executable is correct.

Re: Setup Notepad++ for AutoHotkey

Posted: 06 Dec 2017, 16:09
by RiseUp
Are you comfortable with using regedit.exe? If so, here's how my entry appears in regedit if you want to try the same setup:
Image


If that doesn't work, the next step would be to use the full path to notepad++ in the "Data" section of that registry key, which would then need to be quoted because it probably contains spaces. In that case, maybe try this:

Code: Select all

"C:\Program Files (x86)\Notepad++\notepad++.exe" "%1"
Finally, have you restarted the PC after you made the changes? I'm not sure if it's required, but it's probably worth a shot.

Re: Setup Notepad++ for AutoHotkey

Posted: 08 Feb 2018, 05:45
by Scr1pter
How does the RunMe work?
I added it in the Plugin folder of NPP and see the icon.
Furthermore I set that ahk files get opened with Ahk2Exe.
But when I click on the RunMe icon in NPP, it just says:
Image

Re: Setup Notepad++ for AutoHotkey

Posted: 08 Feb 2018, 15:44
by kczx3
.... Um, AHK files aren't ran with Ahk2Exe.exe... They are ran with AutoHotkey.exe

Re: Setup Notepad++ for AutoHotkey

Posted: 08 Feb 2018, 16:34
by Scr1pter
Ok, thanks for that information!
I was always wondering why guys said there was some Window Spy when right-clicking on a script.
For me there was only Pause, Suspend and exit.

Why is there ahk2exe anyway?

Re: Setup Notepad++ for AutoHotkey

Posted: 24 Mar 2018, 16:27
by Trogluddite
Scr1pter wrote:Why is there ahk2exe anyway?
ahk2exe takes an AHK script, processes it, and outputs an .exe file version of the script. This is handy if you want to make your script into a single file which can be used on a PC which doesn't have AHK installed on it.

Re: Setup Notepad++ for AutoHotkey

Posted: 16 May 2018, 10:37
by bmilcs
Not sure why, but I cannot get Autocompletion to work.

I've followed the instructions to a T, several times over the past few months, and still... nothing.

I've quadruple checked the Notepad++ settings, I've pasted it to the right folder, and so on.

Do you think it may be an %appdata% issue? Is it not looking to the program directory?

Re: Setup Notepad++ for AutoHotkey

Posted: 28 Jul 2018, 07:40
by brown
Hi guys,

I don't know if you'll find this useful. I just combine a script I got from the forums and SetTitleMatchMode and then be able to use other text editors without messing with the registry or anything:

Code: Select all

; Reload Script
$^s::
SetTitleMatchMode 2
IfWinActive, scriptname.ahk
{
   Send, ^s
   SplashTextOn,,20,,Updating
   Sleep,500
   SplashTextOff
   Reload
}
else
   Send, ^s
return
The first time though, you'd have to right click the tray icon to reload script. After that, a simple control-S would suffice.

Re: Setup Notepad++ for AutoHotkey

Posted: 15 Aug 2018, 16:04
by AZJIO

Re: Setup Notepad++ for AutoHotkey

Posted: 21 Aug 2018, 16:31
by d3daim
HinkerLoden wrote:I was really going crazy. I want to add a new style and nothing happens. First the update to the version v.6.9.1 added the style correct.
I created a new Syntax-Highlightning file based on the Lazy one. But i completely redesigned it to a eye friendly dark background and i try to pick colours that not bite each other.

HinkerLoden.zip

Just gimme a feedback if you try this out. I added all Commands and some Control parameter. But the parameter are the next thing i want to fit in.

is used theTechmantium Theme/ Style or use any other dark theme.

( select the Standard-Backgroundcolor global override to get it right )

Bild 1.png

Bild 2.png

1. Group - bright Blue
Commands with parameters
2. Group - Purple
INPUT _ OUTPUT Commands
3. Group - Dark Yellow
Build-In Variables + Call Stats
4. Group - Dark Green
Window Specific Command and ParametersControl
Peripherie Calls - GetKeyState / ImageSearch / ...
5. Group - red
Gui and Input Flow
6. Group - Pink
Script Environment
7. Group - Bright Green
Basic Script Syntax + Loop parse / Read Vars
8. Group - Dark Blue
Internal Functions
Really like this syntax highlighting vs the OP

Re: Setup Notepad++ for AutoHotkey

Posted: 09 Mar 2019, 04:55
by CloakerSmoker
Does anyone know if it's possible to get the DBGp plugin to work in Notepad++ v7.6.3 (64 bit), or know the last version of N++ that it worked for?
I'm loving the new plugin manager in N++, but I've recently gotten into the habit of using DBGp so much that I'm willing to install an older version just so it works again.

Re: Setup Notepad++ for AutoHotkey

Posted: 09 Mar 2019, 05:06
by toralf
Iirc the 64Bit version of n++ had some issues. Don’t know if this is still the case. But it might be worth a trial with the 32 Bit Version.
I have an older 32 bit version of n++ with the debugger running. But do not know the version out of my head

Re: Setup Notepad++ for AutoHotkey

Posted: 11 Mar 2019, 00:20
by anotherautohotkeyusr
I also use the LanguageHelp plugin from https://sites.google.com/site/fstellari/nppplugins to provide context sensitive searching of the AutoHotkey help file.


moderation note: fixed legitimate link that was altered by forum spam filter - gregster

Re: Setup Notepad++ for AutoHotkey

Posted: 05 Jun 2019, 12:26
by wei9133
Auto-Completion is not run
notepad++ 7.7 zip
2.png
2.png (59.95 KiB) Viewed 15162 times
4.png
4.png (76.18 KiB) Viewed 15162 times
3.png
3.png (70 KiB) Viewed 15162 times
path is
Notepad++ 7.7\autoCompletion\AutoHotkey.xml
where is error