Notepad++ switch between open files

Hello all,

For all of the Notepad++ users, I have a question about a macro I'm trying to create.

In Notepad++ all open file have their own tab. You can switch between the files by pressing Ctrl and Tab X number of times to move through the list.

I'm having problems creating a macro that can do what I can do with keystrokes.

If I execute code to hold down the Control key, I can maually tab or arrow through the list that is displayed. Then execute a command to release the Control key. But I haven't been able to create a command that will move through the list. Executing Tab or Arrow movement commands causes no movement, but these commands are being recognized.

An thoughts on a solution?

Thanks
Bruce

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Bruce, If I understand what

Bruce,

If I understand what you've tried, it sounds like you're trying to emulate your physical actions by holding down the Ctrl key while repeating the Tab keystroke a finite number of times.

If so, I would suggest repeating separate instances of Ctrl+Tab keystrokes. If you want to move through four tabs, repeat the Ctrl+Tab keystroke four times.

OTOH, if that's what you're doing, try doing the first routine.

If neither works, try another editor Smiling

HTH,
Bruce

Bruce, Ctrl+Tab 4 is

Bruce,

Ctrl+Tab 4
is different than
Ctrl+Tab Ctrl+Tab Ctrl+Tab Ctrl+Tab

Ctrl+Tab with the Ctrl held down pops up a list and highlights the previously accessed file. Then you can tab or arrow through the list to the desired file before releasing the Ctrl key.

Ctrl+Tab repeated 4 times just toggles back and forth between the current and previous file.

This command is not a deal breaker, since I can press keys and I otherwise really like this editor.

http://notepad-plus.sourceforge.net

Thanks
Bruce

Bruce Tjosvold

Bruce Tjosvold wrote:

Bruce,

Ctrl+Tab 4
is different than
Ctrl+Tab Ctrl+Tab Ctrl+Tab Ctrl+Tab

Bruce

Bruce,

Right. Since you've tried both, I think you need a third alternative:

Hold the Ctrl key down and strike the Tab key four times. Unless that's something you've already tried. Since I'm not a programmer, I can't tell you how to do that, but I trust you can figure it out.

Bruce

Chuck Runquist's picture

Notepad++ not Select-and-Say enabled

Bruce,

I would have to go back through my notes but there are a number of ways of creating commands that will switch back and forth between tabs in an application. There is also a means of holding down the control key (Ctrl) while switching tabs. It's been a long time since I needed that because Internet Explorer has its own nifty little set of commands for switching tabs quite easily. There are also some dirty ways of doing this. If I can find these, I'll share them with you. However, I can't guarantee that I ever kept them.

However, the reason for my post is simply to point out to everyone that Notepad++ is not Select-and-Say enabled. I tried this variation some time ago with one of the previous versions of DNS and it wasn't Select-and-Say enabled then. I just downloaded and tried the new version and it is not Select-and-Say enabled in either DNS 9.5 or 10.0.

Chuck Runquist
Former Dragon NaturallySpeaking SDK & Senior Technical Solutions PM for DNS

If computers get too powerful, we can organize them into a committee - that will do them in. - Bradley's Bromide

You can enable select-and-say Notepad++

Just add this following to the bottom of your nsapps.ini file:

[Notepad++]
App Support GUID={dd100104-6205-11cf-ae61-0000e8a28647}
[Notepad++\Enable Class Names]
Scintilla=1

Works great. Only quirk I've found is that it's slow with very big text-files.

Chuck, Select and say is not

Chuck,

Select and say is not particularly important to me when I'm using this editor. Most of the time I use this editor for viewing files and making very minor changes. Command and control is much more important to me when using Notepad++.

Any assistance you may be able to provide will be greatly appreciated.

Thanks
Bruce

Chuck Runquist's picture

Bruce, Understood. I was

Bruce,

Understood. I was just making anyone else that was interested in using Notepad++ aware of the fact that it is not Select-and-Say enabled.

If you're comfortable with that, that's fine.

I'll try to locate those commands. Can't guarantee being able to find them quickly, but if I do, I will share them with you.

Chuck Runquist
Owner, GEMCCON – The Choice of Intelligence
Speech Recognition Consulting and Training

"Kindness is the language which the deaf can hear and the blind can see." -- Mark Twain

Why not use the "Window"

Why not use the "Window" menu option?

Quintijn

Bruce, following your tip on

Bruce,

following your tip on the Knowbrainer forum, I downloaded Notepad++ and installed it. This editor seems nice and neat, I will definitely use it. Also, it does launch with all files being open the last time it was closed, like the one that I suggested.

As Quintijn already pointed out, you can switch between open files by calling the window menu, and then pressing the number thats assigned to the window you want to switch to.

So, using a code like Sendkeys "%w" + ListVar1 - not knowing for sure if "w" is the accelerator key for this in the English version, otherwise change it - in a script defined app specific and called "go to window <1-10>" will do what you want.

Rüdiger Wilke

Quintijn/Rüdiger, Every

Quintijn/Rüdiger,

Every application that I use, I always learn something new, another way of doing something, from other people who use that same application.

Thanks
Bruce

Bruce, FWIW, now that I'm

Bruce,

FWIW, now that I'm back home I discovered that the following DNS Pro 10 script works to switch between adjacent windows:

Sub Main
SendKeys "^{Tab}"
End Sub

However, I agree it seems more convenient to go directly to the window that you want via the menu command.

Bruce

Use Notepad++ 4.1.2

In an off-line discussion with Lizcito, we discovered that an older version of Notepad++ is "Select-and-Say" compatible. Version 4.1.2 works, and perhaps more recent versions do as well. But the most recent version is not "Select-and-Say" compatible.

You do have to add the following to the bottom of your nsapps.ini file:

[Notepad++]
App Support GUID={dd100104-6205-11cf-ae61-0000e8a28647}
[Notepad++\Enable Class Names]
Scintilla=1

-Russ

Scintilla

Hello,

From my memory: Scintila based programs sometimes appear to be select and say compatible, but in fact they are (were) not completely so. For example the first word of a file is not capitalised.

Same problem with UltraEdit, which I have in use (not free). The green light of NatSpeak is sometimes on, sometimes not. I have tried many different versions (also with cooperation of the developers), but could not get a stable S&S compatible version. The Dragon log file also mentions something like suspecting a S&S window.

So... inspect your dragon log file when experimenting with this.

So... I think still no solution in this way (but hope I am wrong)

Quintijn

From an end-user perspective...

... Notepad++ has worked great for me for years, notwithstanding the problems you cite. I would, of course, love it to be perfectly stable, but it is well within the realm of usable, and, in fact, quite pleasant.

-Ben

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Syndicate content