I found this page and tried this:
https://autohotkey.com/docs/commands/StringSplit.htm
Code: Select all
inputname = smith, john
StringSplit, outputname, inputname, ","
Send % outputname[2]
Send % outputname[1]
https://autohotkey.com/docs/commands/Sort.htm
Please enlighten me.
Thank you.