[Script] WME Quick HN+RPP

This is a fork of the script originally by Vinkoy. They have been inactive and non-responsive for some time.

The script allows to add house numbers using shortcuts. In Edit house number mode press key:
T to add HN +1
R to add HN +2
E to add HN +CUSTOM_VALUE
1 - 9 to add HN +x
0 to add HN +10

If you are using a previous version before the fork, you will likely need to delete that from TamperMonkey then install.

Here is the install link:

1 Like

With this script and the latest version of WME, the left panel gets cut in half and requires you to scroll down in every tab.

1.png
2.png

Not limited to this script, I’ve seen it too occasionally today and I don’t have this script at all.

Do you have any script installed that adds a new tab in the left panel when a segment is selected (in addition to the three standard tabs)?

Must be WME Route Checker then… I saw the issue today on my work laptop and it had this enabled.

I’ve just posted a new version 2023.01.31.01 that should fix it for the latest version of WME.

There’s one thing about this script that can be confusing. The House number entry field in the Quick HN tab is set to HN+1 whenever you create a new HN with QuickHN. So lets refer to it as NEXTNUM. When you use this script to add a new HN, it will create the new HN as NEXTNUM + INTERVAL - 1. It has to subtract one since NEXTNUM is one more than the last one created. So if you enter 100 in the “NEXTNUM” field, then press 4 and click on the map, it will create HN 103.

When I want to enter a series, like 100, 104, 108, I first put 100 in the “NEXTNUM” field, then hit 1 and click, and it will create HN 100. Then hit 4 and click to create 104, then 4 again to create 108, and so on.

I hope this helps and doesn’t create more confusion.

Dave

I’ve just posted a minor update (2023.04.20.01) that only adds the QuickHN tab when you enter HN edit mode, and the QuickHN tab is then selected.

Dave

I’m having an issue with the script version 2023.04.20.01 today. When I press any button (1, 2, T, E, etc) to create a new HN, first the line is shown pointing well off-screen somewhere. Then when I click to drop the HN on a house, the regular HN dialog appears without the HN filled in. I’ve tried it on multiple roads today after restarting Chrome, and it still has the same issue. Also, about half the time, entering HN mode doesn’t show the Quick HN tab, instead selecting the Lanes & Road Width tab.

EDIT: Looks like WME updated recently, which I didn’t realize. I’ve read it’s messing up other HN scripts as well.

Yes, those are two problems that started with the latest WME update. The Quick HN tab never shows up for me with the new WME. I am looking into these problems.

Dave

QuickHN has been updated to work with the latest WME. Thanks to Fuji2086 for finding a way to set the input field now.

wme-quick-hn-daveacincy-fork

There are other scripts that currently prevent HN edit mode from working.

Dave

I haven’t seen if WME updated again, but in the last few days Quick HN never puts an HN the first try. For example, I want to number some houses 2, 4, 6, 8, etc. I set 1 for the starting number, press “2,” then click on a house. WME gives me an empty HN as if I had selected “Add House Numbers.” I click away to make the empty HN disappear, then I press “2” again. Now an HN with the number 2 appears. Same thing with the next HN: press 2, get a blank HN, erase, click 2, get HN #4 and so on.

Yes, WME updated a few days ago

Thanks, I wonder if that’s what caused the behavior I described above.

WME Quick HN v 2023.11.28.01 is now available from greasyfork and works with the latest WME.

Dave

Honestly, it is kind of confusing to me. You have to hit 1 (or T) to get NEXTNUM for the first HN then 1/T starts adding. Any key you hit for the first HN, except for 1/T will give you NEXTNUM-1. Maybe there could be a +0 key that you would use for the first HN, and all the other keys do what their description says all the time? Maybe F for First? I’m not sure if it’s just me or if anyone else has the same issue. I’m coming to QuickHN from RapidHN, so maybe I’m just not used to it yet.

I too am coming from Rapid HN and so confused. I enter the number I want to start with in the House number field then enter a key for the shortcut increment and it’s never what I expect. I like the idea of a first number button that matches what is in the House Number field.

Additionally, I use the Zoom Shortcuts script so using the numbers in Quick HN don’t work. Would it be possible in this script to override those shortcuts when the script is active?

edit- I seems for every number that is in the House number field I have to do some mental gymnastics to make sure the key I press is an increment greater than what is displayed. If I enter 6100 in the House number field then i have to press T to get 6100 to display as the next HN. Then the script displays 6101 in the HN field but If I press R(+2) the next number added is 6102. Then 6103 is displayed in the House number field. Pressing R again makes the next HN 6104. The number in House number field never match what the last or next HN added is.

Is ther no way the script can do the math?

Another thing I notice is that Quick HN displays in the left panel while in HN mode until I hit Save, then the left panel switches back to the segment details. I haven’t tried disabling other scripts to see if it’s an interference issue.

Thats how the original author did it and I am hesitant to change that. I am trying to work on a way that you can use the h key to start a sequence, setting NEXTNUM after you manually enter an address with the h key.

I have noticed the WME occasionally switches to another tab (I dont think another script is doing that). If I can find something to trigger on I should be able to force it back to the QuickHN tab.

The numbers you hit should be the increment from the last number that was inserted, not from the “NEXTNUM” field.

Quick HN uses the WME shortcuts capability, and I dont think you can swap in a set for HN mode, then restore the originals when exiting HN mode. I think some people have used the Keyboard Shortcuts capability to reassign the keys for QuickHN to the keypad digits instead. I have also thought about adding “zoom shortcuts” to Quick HN when it is not in HN mode, since it has taken over those keys.