System wide, so that anything the user may be typing, will not steal the focus of sendkeys.

I found a few call's that do this in other forum's, since I have posted. The problem now is that the focus is left on the app, and needs to be returned to the users carret.

I tried Dan's Getfocus Putfocus, but can't get it to work.
Any idea how to grab the current focus, (into variable) and then after sendkeys, putfocus back?