1276
Post New Requests Here / Re: T h i s i s a v e r y s h o r t s c r i p t - This is a very short script
« Last post by Contro on March 11, 2017, 12:34 PM »Yes. That is exactly my case in this moment.As I told you already, nobody can know which space to delete and which not.-AbteriX (March 10, 2017, 01:57 PM)
Actually, so long as distorted text has extra spaces between ALL characters (which includes the space character), you can make this work. Every real space will have two spaces instead of one so you can do it like this:Code: Autohotkey [Select]
#T:: ; Windows+T hotkey. Change as desired. { ; T h i s i s a v e r y s h o r t s c r i p t ; Sample of distorted text. ; ^^ ^^ ^^ ^^ ^^ ; Double spaces where single spaces should be. ; Transform text. myString := Clipboard myString := StrReplace( myString, " ", "§" ) ; Replace all double-spaces with a temporary section (§) character. myString := StrReplace( myString, " ", "" ) ; Collapse remaining spaces. myString := StrReplace( myString, "§", " " ) ; Replace temporary section (§) characters with a single space. } Return
Contro, give the above AHK code a try and see if it works for you. Again, this will only work if each real space is actually two spaces when your text is distorted.-skwire (March 10, 2017, 03:49 PM)
I will try and comment

Recent Posts

