Print direct after submit POS invoice

Dears
i need to print the POS invoice direct after completing the order instead of press print button ,

can anyone guide , can I make it by client script ?

thanks