How to Capture OTP that is displayed in Mobile's Keypad

Hi
As soon as I enter my login credentials, the OTP is displayed on the mobile’s keypad.
I need to read this otp from mobile’s keypad and enter it to login my application.

Please help me.
Refer attached images.