I have the following script that removes any spaces or dashes in the number that I have copied to the clipboard and pastes it as 123456789:
Code: Select all
^g::
Clipboard := StrReplace(Clipboard, "-", "")
Clipboard := StrReplace(Clipboard, " ", "")
Send ^v
return
Next, I want to have another script that does the same as the above and after removing any spaces and dashes, replaces the first five digits with an X so I get XXXXX6789 and places on the clipboard where I can paste. I've been playing with the following script that removes the first 5 characters but I'm not sure how to insert an X five times:
Code: Select all
Clipboard := SubStr(Clipboard, 6, 4)
return