Hello all,
I am currently trying to create a script for setup automation, one of the things I want it to do is allow the user to type in the activation key for windows which I will then use to activate windows.
My question is, how do I create an input format that is enforced while the user is typing? Example:
The user will type their activation key in as such: hgjfkhgjfkhgjfkhgjfkhgjfkhgjfk
While the user is typing, dashes will automatically be entered if the user doesn't include them so that when the user is done typing it will actually be: hgjfk-hgjfk-hgjfk-hgjfk-hgjfk
I thought to monitor input and every 5 keys to input a dash if the 6th key isn't a dash but I was hoping there would be an easier way?