There are windows macro recorders that would record you screen steps and you might be able to use this for your program. Not sure how good they are though
Type windows macro recorder into google
first one out is this one that claims to do what you want
http://freelabs.info/macrorecorder.aspx