I have to ask - why would you want to do something like this?
Life should NOT be a trip to the grave with the intention of arriving safely in an cool and well preserved body, but rather to skid in, chocolate in one hand, beer in the other, body wrecked, totally worn out and screaming WOO HOO what a ride!
Given the high cost of QTP ($8000 US for a floating concurrent license), this seems like a waste of a QTP license. QTP is a functional test automation tool, not a glorified macro recorder. You could achieve your goal using VBScript, which is free with the operating system.