I think from memory there is a place on the TDAC online form to enter your Visa number or information if you are entering on an actual visa (Not Visa exemption like most tourists would) I think its an optional entry field but if you do have a retirement or marriage visa you probably should put that information in for the TDAC
I assume you are a tourist and not living in Thailand on a long term visa?
If you are visiting Thailand as a tourist then you cannot get a Thailand driver license..
To legally drive or ride a motorcycle or scooter in Thailand first you must have a motorcycle license from your home country..
You then need to get an international driving permit from your home country that will show you have a motorcycle license/endorsement..
The international driving permit is just a translation of your home country license and allows you to legally drive or ride the class of vehicles as you can in your home country.
That is the ONLY way to legally ride in Thailand as a tourist.