user enters "ATP999 Bon Bon"
I need to format the text to this: ATP999%Bon%Bon
here is what I have so far:
Code: Select all
the_letters = abcdefghijklmnopqrstuvwxyz
;make ATP999 Bon Bon to this: ATP999%Bon%Bon
loop, parse, UserInput
{
if %A_loopfield% in the_letters
new_name=new_name A_loopfield
else
new_name=new_name % ; ERROR HERE
}
msgbox %newname%