> > Anyway, I'm done with this I think. Thanks to Bruce and everyone who > bothered to read. > --
I don't blame you. Win.setfocus can also handle child window handles, I think, so you may be able to script a solution to find the handle of the tree control and set its focus. Or maybe not. Different programs react in different ways to requests to set focus by external programs (which most programs are not designed to expect). I don't know why Windows is not changing the caption color. Win.show also has several different options for activating a program which you may want to experiment with at some point. >
