For example, I'd highlight the following text
Hit F2 + v, and have the web browser pop up.Bonjour Robert,
Je m'appelle Claude.
Comment allez vous?
At the moment, the clipboard copies this text with formatting (including spaces, line breaks, etc).
I'd like to be able to copy the text, then access it as:
"Bonjour%20Robert%2C%0A%0AJe%20m'appelle%20Claude.%0A%0AComment%20allez%20vous%3F"
I can then use this this string to directly open up a google translate page (appending this text to the weblink will make it open right away).
So far I have:
Code: Select all
F2 & v:: ;F2 + v
Send ^c ;control-c (copy)
Sleep, 100 ; wait for Clipboard to update
Clipboard := Clipboard ; supposed to remove formatting
Output := "https://translate.google.com /sl=en&tl=pt#view=home&op=translate&sl=auto&tl=en&text=" Clipboard
Run, firefox.exe %Output%
return ;end
If anybody could provide help in accessing/converting the text into the desired format, I'd be extremely grateful!