07-03-2023, 05:26 PM
I'm trying to write a small script which change any backslashes found in the text in the clipboard to / and then paste the resulting text into the current app.
My script is:
Two problems:
My script is:
string s = clipboard.copy();
s = s.Replace(@"\","/");
print.it(s);
clipboard.paste(s);
Two problems:
- often times I'm getting an error in LA:
Warning: Au.Types.AuException: Failed to copy.
at line 83 in Hotkey triggers.cs, Program.<>c.<TextTools>b__11_5(PMItem o)
(line 83 is the first line shown above)
- the print command in the 3d line shows the original text, so it seems my line 2 doesn't do what it should - but I don't see any fault there!?