I would try out AutoIt and see if it fits the bill. We know that this can be integrated with KeePass - see KeeForm.

cheers, Paul