Run script or selection from Notepad++
Re: Run script or selection from Notepad++
Does this work in 2019? I followed all the steps but it doesn't appear to do anything...
Re: Run script or selection from Notepad++
Do you perhaps have Notepad++ set up for a language other than English? If so, see toralf's post.
Re: Run script or selection from Notepad++
No, I have it set up in English.
Re: Run script or selection from Notepad++
I don't have it set up on my new computer because I use Visual Studio Code now.
So you have a script in your Notepad++ window, and when you select "Run Script" from the menu, it does not run your script?
So you have a script in your Notepad++ window, and when you select "Run Script" from the menu, it does not run your script?
Re: Run script or selection from Notepad++
Yes, for testing purposes. I just created a new file and typed msgbox, "Test". If I save and run it as an .ahk file it works. If I try and click the play button or use the run command from the drop down menu's it appears as though it is trying to do something but then nothing happens. I'm running the most up to date AutoHotKey and Notepad++. Do I have to have the script you made in a specific folder?
Re: Run script or selection from Notepad++
It shouldn't matter what the location of the script is as long as when you were creating the menu item, you browsed to where you have it located and selected the script. I'll try installing it on my new machine and see if it works for me.
Re: Run script or selection from Notepad++
I just installed it, and it works.
When you say "If I try and click the play button or use the run command from the drop down menu's", what run command are you choosing from the menus? Did you create a Run Script menu item as described in the instructions? Do you have a new menu item at the bottom of the Run menu (just above "Modify Shortcut/Delete Command...")?
When you say "If I try and click the play button or use the run command from the drop down menu's", what run command are you choosing from the menus? Did you create a Run Script menu item as described in the instructions? Do you have a new menu item at the bottom of the Run menu (just above "Modify Shortcut/Delete Command...")?
Re: Run script or selection from Notepad++
Weird... Yes I created the "Run Script" command as in the instructions and it does show up in the Run drop down menu just above the "Modify Shortcut/Delete Command..."
Like I said, it looks like it tries to do something. My cursor blinks for a second. I was watching task manager to see if I could spot any tasks starting/changing memory usage to see what it's doing.
Like I said, it looks like it tries to do something. My cursor blinks for a second. I was watching task manager to see if I could spot any tasks starting/changing memory usage to see what it's doing.
Re: Run script or selection from Notepad++
I don't see a way of checking what a menu item is pointing to, so I suggest creating it again. Choose "Modify Shortcut/Delete Command..." and delete the Run Script item you created, then create it again per the instructions, making sure that you select the RunScript_Notepad++.ahk file and not the zip file or something.
Re: Run script or selection from Notepad++
Yeah I though the same thing. I tried it, but to no avail...
Just to ensure I'm not missing something I'm attaching some screenshots of the 4 steps to map the run command. Also, I've ensured it wasn't being blocked by antivirus/antimalware protections.
Step 1 - https://imgur.com/vN6Spua
Step 2 - https://imgur.com/COGnQze
Step 3 - https://imgur.com/cmnNjGU
Step 4 - https://imgur.com/IwdKe36
Just to ensure I'm not missing something I'm attaching some screenshots of the 4 steps to map the run command. Also, I've ensured it wasn't being blocked by antivirus/antimalware protections.
Step 1 - https://imgur.com/vN6Spua
Step 2 - https://imgur.com/COGnQze
Step 3 - https://imgur.com/cmnNjGU
Step 4 - https://imgur.com/IwdKe36
Last edited by chrisbtbi on 28 Oct 2019, 13:39, edited 3 times in total.
Re: Run script or selection from Notepad++
.
Last edited by chrisbtbi on 28 Oct 2019, 13:08, edited 1 time in total.
Re: Run script or selection from Notepad++
OMG I just figured it out. For some reason I had to go into Notepad++ and configure it to run as an administrator under the "Compatibility" tab.
Re: Run script or selection from Notepad++
Ah, OK. I was going to suggest trying to run my script as admin, but that wouldn't be easy given the setup. Glad you got it working.
At least you provided some good visuals for people who are setting it up in the future.
At least you provided some good visuals for people who are setting it up in the future.
Re: Run script or selection from Notepad++
I do hope someone can use the visuals for setting it up in the future. I'm going to try and find some image hosting service and re-post the images because the board appears to have compressed them beyond legibility.
Thanks for your help and for such an awesome script! I look forward to using it! =)
Thanks for your help and for such an awesome script! I look forward to using it! =)
- rediffusion
- Posts: 58
- Joined: 15 Mar 2019, 05:16
Re: Run script or selection from Notepad++
@chrisbtbi
Damn! 1-hour dude 1 hour I try to figure out why it's not working! 10x you.
@boiler , I agree with @haichen works like charm.
Damn! 1-hour dude 1 hour I try to figure out why it's not working! 10x you.
@boiler , I agree with @haichen works like charm.
Last edited by rediffusion on 09 Dec 2019, 17:37, edited 1 time in total.
Re: Run script or selection from Notepad++
I'm glad you find it useful (even though I'm not jNizM ).
- rediffusion
- Posts: 58
- Joined: 15 Mar 2019, 05:16
Re: Run script or selection from Notepad++
@boiler
Right now I have some problem with the icon "arrow". It's displayed but not clickable!
Right now I have some problem with the icon "arrow". It's displayed but not clickable!
Re: Run script or selection from Notepad++
What's in your CustomizeToolbar.btn file? Does it contain the following?rediffusion wrote: ↑ Right now I have some problem with the icon "arrow". It's displayed but not clickable!
Run,Run Script,,,Run btn.bmp
Is it located in your AppData\Roaming\Notepad++\plugins\config directory?
- rediffusion
- Posts: 58
- Joined: 15 Mar 2019, 05:16
Re: Run script or selection from Notepad++
@boiler
Yes, yes and yes.
I've:
Yes, yes and yes.
I've:
Spoiler
Re: Run script or selection from Notepad++
It was noted by Johana earlier in this thread that the customizer plugin only works with the 32-bit version of Notepad++, so that’s probably it.