Thanks to Aaron, I was finally able to get to the source code using the WebBrowser Control. My problem now is that I need my program to delay execution until the Notepad window appears because it takes a few seconds to show up on the screen.

I tried using:

hwnd = FindWindow(CLng(0), strtemp)
Do Until hwnd <> 0
Sleep 500 ' pause for half a second
hwnd = FindWindow(CLng(0), strtemp)
Loop

But the program never found the Window, and just kept sleeping!

Does anybody know of a way to pause the program's execution until Notepad finishes loading without setting up a "dummy" do-nothing loop? - DoEvents didn't work. :=(

Second question:

I am trying to use the "AppActivate Notepad" command to activate the Notepad window, but this command works from LEFT to RIGHT and Notepad's title bar places the file name first. E.g. "login(1) - Notepad".

Does anyone know how to get around this?

P.S. Of course, if there was a "save source" command, both of the above problems would instantly vanish! Does something like this exist?

Thanks

Chris