Cutting and Pasting special characters
Keywords: clipget() ClipGetEx(7)
Question:
I'm trying to cut and paste french accented characters from one document to another using the following:ClipData = ClipGet() WinActivate("~Notepad") SendKey(ClipData)I have not been able to get this to work.Answer:
Depends on the problem. What kind of problems are you getting?
- Try sending Ctrl-v instead to paste to the clipboard.
ClipData = ClipGet() WinActivate("~Notepad") SendKey("^v")- The major problem is the ANSI/ASCII character sets. You may need to convert the data between them. Maybe try the:
ClipGetEx(7)and see if that helps.
- Can't paste special characters ! + ^ { ~
Try...
ClipData = ClipGetEx(7) WinActivate("~Notepad") ClipData=StrReplace(ClipData, "{", "{{}") ClipData=StrReplace(ClipData, "+", "{+}") ClipData=StrReplace(ClipData, "!", "{!}") ClipData=StrReplace(ClipData, "^", "{^}") ClipData=StrReplace(ClipData, "~", "{~}") SendKey(ClipData)
Article ID: W12746Filename: Pasting Special Chars from Clipboard.txt