If you can do it manually with your mouse and keyboard then Mini Mouse Macro (MMM) can replay that back. If you can't do it manually then MMM might be able to do it with condition based logic (www.turnssoft.com/conditions.html).
A demo on how to do basic macro recording (it's an older version on MMM but the steps are the same):
If you can't find what you are after, this forum has a lot of code and usage examples. The 'search' function works pretty well here. If you need further help try and detail exactly what you are trying to achieve. The more detail the better
Thanks for all the input. I am not sure if this is a great approach, but in the meantime I found a program called "WindowManger" www.desksoft.com/WindowManager.htm that allows you to save the position and size of a windows and allows you to recall them with a hotkey or command line argument.