Select customer with magnetic card

hello everyone, I will direct the question, how can I make the client appear in the ticket without clicking to select client screen, so I was spending the magnetic card or bar code scanner of the customer to automatically appear in the ticket screen