Possible bug. Pasting a GUID (string) from the clipboard

Using Python script and RhinoScript.

Sometimes users are wanting to select items based on a string representation of the GUID of an object that is on the clipboard so I am getting the string representation of the GUID here:

o = rs.GetString('Enter the string representation of the GUID')

If the user presses either Ctrl-V or selects Edit and Paste from the menu, ‘Unknown command: ’ is returned on the command line. Rhino executes the _Paste command.
2022-12-18 12_48_18-Untitled.3dm (40 KB) - Rhinoceros 7 Commercial - Top

However, if the user places the mouse to the right of the text ‘Enter the string representation of the GUID’ on the command line as shown below, right clicks, and selects Paste, Rhino does not execute the _Paste command and the string (GUID) is pasted as the user’s text just fine.
2022-12-18 12_50_36-Untitled.3dm (40 KB) - Rhinoceros 7 Commercial - Top

Is this a bug?

Hi @Mike24,

Pressing Ctrl+V runs Rhino’s Paste command. Since the clipboard has text but not in the form of a command macro, “Unknown command” is echoed.

For fun, try this:

import rhinoscriptsyntax as rs

def test():
    id = rs.FirstObject()
    if id:
        macro = "_SelId {0}".format(id.ToString())
        rs.ClipboardText(macro)
        rs.GetString('Press Ctrl+V')

test()

Right-clicking on the command line just executes a normal text box paste operation.

– Dale

Ok…understood. I think it’s just odd that if you right click in the textbox the submenu says you Paste…Ctrl-V which implies that clicking on Paste and pressing Ctrl-V does the same thing but in reality it does not. Maybe on that submenu there needs to be 2 paste commands like this…

Paste (text)
Paste (macro)…Ctrl-V

That way the user would know clicking on the first one would act the same as the submenu acts today and the 2nd one would execute the Paste command and Ctrl-V would stay the same since it currently executes the Paste command.

That would clarify issues with the users if that change was made and documentation was added to the manual. Any thoughts?