You have to copy the entered string to clipboard and paste it whereever you want.
GetString "Enter Structure name in lower case"
Key LEFT ARROW
"typedef struct tst"
This modified macro now changes the clipboard to user clipboard 9, so the windows clipboard content is not destroyed.
Then it inserts a single space, followed by the user entered string and an additional space. The entered string is now a single word, if it doesn't contain word deliminating characters.
Next it sets the cursor back to the end of the enterd string, select and cut it. Then the surrounding spaces, entered by the macro are removed.
Now you can paste the user entered string whereever you want.
Finally the clipboard is set back to windows clipboard.
Interesting: After the macro has finished, the status bar still shows C9 for user clipboard 9, although the windows clipboard is set and the status bar should display C0. I have V10.10c. Does this also happens in the new V10.20c?
Best regards from Austria