Re: Setup Notepad++ for AutoHotkey
Posted: 16 Oct 2017, 06:01
It work, thank you very much...
Let's help each other out
https://www.autohotkey.com/boards/
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.ry3ks3u_m4dd0ns wrote:
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?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>
Well it doesn't work in an AHK script either.RiseUp wrote:Isn't that RegWrite line of code meant for running as an AHK script to have AutoHotkey perform the registry edit?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>
When you say, "it doesn't work", what happens? Do you get an error message?THX1138 wrote:Well it doesn't work in an AHK script either.
Code: Select all
"C:\Program Files (x86)\Notepad++\notepad++.exe" "%1"
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.Scr1pter wrote:Why is there ahk2exe anyway?
Code: Select all
; Reload Script
$^s::
SetTitleMatchMode 2
IfWinActive, scriptname.ahk
{
Send, ^s
SplashTextOn,,20,,Updating
Sleep,500
SplashTextOff
Reload
}
else
Send, ^s
return
Really like this syntax highlighting vs the OPHinkerLoden 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