View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005385 | MMW v4 | Framework: Scripts/Extensions | public | 2009-03-15 15:47 | 2013-12-10 00:31 |
Reporter | Bex | Assigned To | |||
Priority | urgent | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 3.1 | ||||
Summary | 0005385: Ampersand char is not correctly shown when used in Scripting | ||||
Description | Using Single "&" char in MediaMonkey Scripting trigger Delphi Shortcut mapping MM should Add Double "&&" to avoid it or correctly classified on wiki so that Scripters can use "&" normally to create scripting form shortcuts. The SDB.MessageBox function doesn't display the ampersand (&) character. (This has always been the case, even in MM 2.5.) VBScript's MsgBox function displays them correctly. Bug Example: res = SDB.MessageBox( SDB.Localize(" This is '&' ampersand char"), mtError, Array(mbOk)) Correct Example: res = SDB.MessageBox( SDB.Localize(" This is '&&' ampersand char"), mtError, Array(mbOk)) | ||||
Additional Information | http://www.mediamonkey.com/forum/viewtopic.php?f=7&t=38035 | ||||
Tags | No tags attached. | ||||
Fixed in build | |||||
|
This looks like standard issue of showing "&" char in Labels and it should be replaces with "&&" to avoid detecting "&" as hotkey start char. |
|
That's indeed the case. :) It would be nice though if the & character was displayed and not considered as a hotkey start character if it was followed by a space. Makes it easier when scripters want to display node names in various forms which have & in their names. |
|
@Bex Thx, for confirming. Most of programming languages uses && to determine if & is start of hotkey or it is & as char. |
|
Yes, this is how it has always worked, double ampersand is needed. I think that it's better in order to be consistent with the rest of the UI (like button captions). Also, changing this now would break some older scripts, so it seems to be better to leave it as is. |
|
I agree with Jiri, this is normal behavior for MM as it always been. Scripting Documents needs to be updated. Should I only update WIKI or it is needed in help also? |
|
Wiki is enough, scripting doesn't have such a coverage in our help. |
|
Assign to me for correcting Wiki Articles in those objects affected by this. |
|
Using '&&' is common standard now. |