Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: WinIDGet window name
You can do a WinIdGet(xxx) on a window, and use the return value of WinIDGet instead of the window name everyplace. So now the problem is figuring out what the name of the new minimized window is.
To get the title of an unknown window... Do a WinItemize before and after launching the window(For does windows add a small timedelay so it can get its title established). Then toss out the ones that match. What's left over - almost always the first one - is the window you just launched.
If you know what the maximized name is, do the following:
oldlist=WinItemize() Runicon("daprogram.exe","") TimeDelay(4) newlist=WinItemize() oldcount=ItemCount(oldlist,@tab) for xx=1 to oldcount oldwin=ItemExtract(xx,oldlist,@tab) yy=ItemLocate(oldwin,newlist,@tab) if yy!=0 then newlist=ItemRemove(yy,newlist,@tab) next mywin=ItemExtract(1,newlist,@tab) mywinid=WinIdGet(mywin)
This (make sure it gets debugged!!!) code gets the lists of windows before and after a run statement, and tries to find the name of the new window that appeared, and then does a WInIdGet on it. After the code is over the "mywinid" variable should refer to the new window that appeared.
Article ID: W13377
Filename: WinIDGet to Handle Changing Window Name.txt
File Created: 1999:04:15:16:53:36
Last Updated: 1999:04:15:16:53:36