Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Explanation Child Window WinExistChild
Say for example, if our parent window is called "SMX". When we issue the command,
run("c:\smx\smx.exe","") winwaitexist("SMX/Application/userid",10);parent window if winexist("SMX/Application/userid")==@true then timedelay(5);a delay for the program to settle down. if winexistchild("SMX/Application/userid","SMX/Application")==@true then sendkeyschild("SMX/Application/userid","SMX/Application","{ENTER}") endif winclose("SMX/Application/userid") endifOr another way to look at this help request. What, EXACTLY, is a Child window?
Thanks for any help!
You can run a seperate script that will help you see the parent child relationship between the different windows.. Here's a script to help you separate the parent and child windows. This code first of all makes a list of all parent windows, and allows you to choose one. Then it gets the list of all children of that parent for your perusal.
parents=WinItemize() thisone=AskItemList("Choose a Parent Window",parents,@tab,@sorted,@single) children=WinItemChild(thisone) child=AskItemList("Children of %thisone%",children,@tab,@sorted,@single)
However here is how I do it.
To see an example of each.
Do a FileOpen in WinBatch studio. the OPEN window that pops up is a parent window
Then grab one of them with a mouse and try to drag it over the wallpaper. Notice it cuts off at the edge of the main Winbatch Studio window. It is a child window.
Article ID: W15019
File Created: 2001:11:08:12:41:22
Last Updated: 2001:11:08:12:41:22