search specific word

Discussion, questions and support.
Post Reply
aymnga
Posts: 2
Joined: Jul 12th, ’21, 14:37

Post by aymnga » Jul 12th, ’21, 14:43

I used this shortcut to search specific word in dictionary website, however, it doesnt copy french characters such as: ù or à , here is the script for the shortcut:

SaveClip := ClipboardAll
Clipboard := ""
Send ^{vk43} ;Ctrl C
ClipWait 1
Word := RegExReplace(Clipboard, "[^\w\s]")
Clipboard := SaveClip
SaveClip := ""
Run, https://www.wordreference.com/fren/%Word%



any help please
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Jul 12th, ’21, 20:38

Try

Code: Select all

SaveClip := ClipboardAll
Clipboard := ""
Send ^{vk43} ;Ctrl C
ClipWait 1
Word := Clipboard
Clipboard := SaveClip
SaveClip := ""
Run, https://www.wordreference.com/fren/%Word%
aymnga
Posts: 2
Joined: Jul 12th, ’21, 14:37

Post by aymnga » Jul 13th, ’21, 04:27

thank you for the tip, it worked!
Post Reply