Setup Notepad++ for AutoHotkey

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Setup Notepad++ for AutoHotkey

Re: Setup Notepad++ for AutoHotkey

Post by d3daim » 21 Aug 2018, 16:31

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

Post by AZJIO » 15 Aug 2018, 16:04

Re: Setup Notepad++ for AutoHotkey

Post by brown » 28 Jul 2018, 07:40

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] [Expand]GeSHi © Codebox Plus



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

Post by bmilcs » 16 May 2018, 10:37

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

Post by Trogluddite » 24 Mar 2018, 16:27

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

Post by Scr1pter » 08 Feb 2018, 16:34

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

Post by kczx3 » 08 Feb 2018, 15:44

.... Um, AHK files aren't ran with Ahk2Exe.exe... They are ran with AutoHotkey.exe

Re: Setup Notepad++ for AutoHotkey

Post by Scr1pter » 08 Feb 2018, 05:45

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

Post by RiseUp » 06 Dec 2017, 16:09

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]GeSHi © Codebox Plus

"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

Post by THX1138 » 06 Dec 2017, 15:42

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

Post by RiseUp » 06 Dec 2017, 13:01

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

Post by THX1138 » 05 Dec 2017, 21:53

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] [Expand]GeSHi © Codebox Plus


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

Post by RiseUp » 05 Dec 2017, 17:28

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] [Expand]GeSHi © Codebox Plus


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

Post by THX1138 » 05 Dec 2017, 15:15

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] [Expand]GeSHi © Codebox Plus

Re: Setup Notepad++ for AutoHotkey

Post by lmstearn » 17 Nov 2017, 10:42

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

Post by majidmetal » 16 Oct 2017, 06:01

It work, thank you very much...

Re: Setup Notepad++ for AutoHotkey

Post by Masonjar13 » 06 Aug 2017, 18:09

I'm fully aware of what you asked.. There was evidently a bug. Though, literally only one line needed to change. For user friendliness, I changed two lines: line 4, allows for easier changing of AHK directory, and line 40 (39 previously).

Re: Setup Notepad++ for AutoHotkey

Post by Asmodeus » 06 Aug 2017, 16:19

thanks for the code, i learned some things from it. though i compiled it as recommended but i still get the message "Windows can't open this file".
i've downloaded and unpacked ahk portable in C:\AutoHotkey folder and put your compiled code in the same directory.
Image
as mentioned my goal is to execute code without installing ahk using an editor like notepad++portable/notepad2-mod.
code execution should run in the background without showing any gui.

this simple code works, a script can be run without installation / registering the file extension for shell execution.

Code: [Select all]GeSHi © Codebox Plus

#SingleInstance Force
#NoTrayIcon
run, C:\AutoHotkey\AutoHotkeyU32.exe "C:\AutoHotkey\test1.ahk"
ExitApp


it should be pretty easy, if i knew how make it generic :headwall:

Re: Setup Notepad++ for AutoHotkey

Post by Masonjar13 » 05 Aug 2017, 19:11

Sure, here you go. Made a whole UI for it, I guess. Made this quite a while ago (compiled Aug '15). Had to pull it out and re-format it, didn't have it saved anywhere. And, as I mentioned, only really useful if it's compiled. I recommend compiling it as a 32-bit so it will run on 32 and 64.

Note: I had it set up in the same directory as the AHK executables, and you can put your stdlib there as well. I also only kept the Unicode versions in, so if someone wants to use the ANSI version, they'll have to add that in.

Code: [Select all] [Expand]GeSHi © Codebox Plus

Re: Setup Notepad++ for AutoHotkey

Post by Asmodeus » 05 Aug 2017, 17:40

Masonjar13 wrote:I accomplished this by making a compiled AHK script that runs the selected script as a parameter to the AutoHotkey executable.


do you mind sharing the source code?

I believe this could be pretty useful for other portable apps affectionados.

Top