In case this helps, here are some tips in the areas you mention. An application or top-level window typlically contains a title, menu bar, and child windows, which are also called controls. The ActiveWindow property returns the window object that currently is actived, and the FocusWindow property returns the child window that currently has focus. Window objects may also be obtained using the Find* commands of the Windows object, e.g., by title or module name.
A window object has properties and methods that are generally available regardless of type, e.g., Handle or ClassName. A window also has a Control property which returns a reference to a particular type of control To get or set the text of an EditBox, use its Text property. To click a button, use its Click method. To get or set the text of the third item in a ListBox, use its Text property, passing it a parameter of 3 (the syntax is like a method call). In general, a strategy is to think of the screen objects of interest, get object references to them, and then use their properties and methods. Code can be tested with theImmediate Window script. More sophisticated scripting involves handling of events. If you want to do something in reaction to a change on the screen, look for an event raised by an object of interest. Use the ConnectEvent method to associate the object with an event handler routine. The Fruit Basket script package may be a good example for learning. It accomplishes the criteria of a sample GUI program which has been implemented in many programming languages at http://FruitBasketDemo.AlacornComputer.com Hope this helps, Jamal On Mon, 23 Feb 2009, Ricks Place wrote: > Date: Mon, 23 Feb 2009 13:07:14 -0500 > From: Ricks Place <[email protected]> > Reply-To: [email protected] > To: [email protected] > Subject: Re: General Concept Question > > Hi Chip: I agree with you 100 percent. Steves post helped me to get a little > direction to my studies, actually still just guessing at this point. > There are 3 scripting procedures that would help me learn and I guess would > help others as well: > Documented Examples of: > 1) How to use the tools to generally analyze a running application. > Harvest Window, Virtual Explorer and others I've not yet used. > 2) How to navigate a Running Application and set focus on controls, > datafields or even text items which may be nodes of trees or selectable > ListBox items. > 3) How to interact with Running Application Controls like Filling out > DataFields that don't work without scripting and clicking buttons or > RightClicking Text that might be in a TreeView node, ListBox or in a Context > Menu. > A script that did these things and documented where the external items were > being called from would give a really solid basis for further learning. > If I ever get there I will do one, it shouldn't take much time at all once I > know what I'm doing. > If someone else beats me to it, well, phew! > Rick USA
