Custom Field Seperator for inputselect(3:=1024)

Features wanted...
Post Reply
WirlyWirly
Posts: 274
Joined: 21 Oct 2020 23:33
Location: Win 10 @ 100% (3440x1440)

Custom Field Seperator for inputselect(3:=1024)

Post by WirlyWirly »

While working on a script, I ran into an issue when trying to create a menu with inputselect(3:=1024) and also using a regex pipe in the data field.

Something like this will break the menu, since I don't have the option to change the | separator used by inputselect(3:=1024)...

Code: Select all

::$command = inputselect('FastFinds', 'Music files|goto "?>(flac|opus|mp3)$"|:qson', ':::', 1 + 1024); load("$command", 2:='s')
Regex pipes are quite handy, so any chance we can get the ability to change the default separator away from |?

admin
Site Admin
Posts: 65019
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom Field Seperator for inputselect(3:=1024)

Post by admin »

Next beta you can do:

Code: Select all

::$command = inputselect('FastFinds', 'Music files#goto "?>(flac|opus|mp3)$"#:qson', ':::', 1 + 1024, 11:=#);

WirlyWirly
Posts: 274
Joined: 21 Oct 2020 23:33
Location: Win 10 @ 100% (3440x1440)

Re: Custom Field Seperator for inputselect(3:=1024)

Post by WirlyWirly »

Updated and it's working great, thanks a bunch :biggrin:

While we're on the subject of inputselect(), I found what I believe to be a bug; Setting inputselect(3:=32) and then hitting the {Enter} key over the Cancel button will return the first selected item instead of terminating the script. {Left-clicking}the Cancel button instead of pressing {Enter} will terminate the script as expected.

You can see it here; run the script, {Tab} over to the Cancel button then hit {Enter}...

Code: Select all

::$name= inputselect('Names', 'Wirly|Don|highend', 3:=32); msg "Hey $name!";

admin
Site Admin
Posts: 65019
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Custom Field Seperator for inputselect(3:=1024)

Post by admin »

Confirmed for 64-bit. That's a tB bug. They are working on it.

Post Reply