Hi, can you help me to find a script that deletes spaces in the clipboard?
E.g a text wich has a a a a should be aaaa and paste it.
Thank you!
Delete spaces in the clipboard Topic is solved
Re: Delete spaces in the clipboard
Look up RegExReplace
OR
try this:
OR
try this:
Code: Select all
StringReplace, TotalVar, TotalVar, %A_SPACE%,, All
Last edited by chef423 on 19 Jul 2018, 16:55, edited 1 time in total.
Re: Delete spaces in the clipboard
Code: Select all
F1::
Clipboard := RegExReplace(Clipboard, "\s")
SendInput ^v
return
Re: Delete spaces in the clipboard
Thank you! Works great!
Just another question, I don't know if I should open an extra topic for it.
I have the following code:
Alt + X deletes the first letter of the clip and pastes it. How can I combine it with the string
So that in hitting ALT + X first all spaces should be deleted first and pasted. But if there is no space than the first letter should be deleted an pasted?
Thanks again!
Just another question, I don't know if I should open an extra topic for it.
I have the following code:
Code: Select all
!x::
If (Clipboard<>"")
{
Clipboard:=SubStr(Clipboard,2)
Send, %clipboard%
}
Return
Code: Select all
Clipboard := RegExReplace(Clipboard, "\s")
SendInput ^v
Thanks again!
Re: Delete spaces in the clipboard Topic is solved
Code: Select all
!x::
Clipboard := RegExMatch(Clipboard, "\s") ? RegExReplace(Clipboard, "\s") : SubStr(Clipboard, 2)
SendInput ^v
return
Re: Delete spaces in the clipboard
amazing! Thank you so much!
Re: Delete spaces in the clipboard
Plz tell me someone, why my script makes my clipboard empty?
trying to do smth like this https://www.youtube.com/watch?v=PfjyecsqEhE
Code: Select all
^c::
ClipWait
;replace in Clipboard +7 (952) 6670804 --> +79526670804
Clipboard := RegExReplace(Clipboard, "\+7?\((\d{3})\)?(\d{6})","\+7$1$2")
return
Who is online
Users browsing this forum: Sniperman and 401 guests