how make dot every 4 character number

Discussion, questions and support.
Post Reply
stevenwi87
Posts: 10
Joined: Jul 21st, ’19, 11:22

Post by stevenwi87 » Oct 16th, ’21, 06:06

have script how make every 4 character number have dot

example
081234567890 to 0812.3456.7890
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Oct 16th, ’21, 21:26

Create a shortcut (Type=Command) - this script will replace the selected string with a formatted one.

Code: Select all

send, ^c
sleep 200
string:=""
loop, parse, clipboard
	string:=string A_LoopField (((Mod(A_Index, 4) = 0) && (A_Index != StrLen(clipboard))) ? "." : "" )
sendinput % string
stevenwi87
Posts: 10
Joined: Jul 21st, ’19, 11:22

Post by stevenwi87 » Oct 17th, ’21, 02:26

thank you for help tom your awesome
Post Reply