@guinness: It is not a keylogger, it passes a generated security code that changes every sixty seconds. I use the same application at work and have thought of doing something similar. He isn't breaking any forum rules, and I don't think Security Dynamics will mind. They haven't existed in over 12 years...
@JosiahBruns: It seems that PsaltyDS is on the right track for that, but you only need to put the keystrokes in the Send() function. I think they copy/pasted from the ControlFocus by mistake. Anyway, you will probably have to macro keystrokes to get it to work right rather than try to interact with the window controls. Please post your solution when you find one so I don't have to reinvent the wheel...
$hWin = WinGetHandle("[CLASS:QWidget; TITLE:RSA SecurID Token]", "")
WinActivate($hWin)
$hCtrl = ControlGetHandle($hWin, "", "[CLASS:QWidget; INSTANCE:4]")
ControlFocus($hWin, "", $hCtrl)
Send("^a")
Send("^c")
$sText = ClipGet()