WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

WinItemizeEx

 Keywords: WinItemizeEx Window Id Name List

Question:

I have the following line and below that the results.
win_list = WinItemizeEx("~Windows Internet Explorer",@TRUE,@TRUE,2)
Results:
BeforeNavigate Event (InternetExplorer, WebBrowser) - Windows Internet Explorer|#WIN$ID#001F049E|WebBrowser Object - Windows Internet Explorer|#WIN$ID#00200AD4
Just out of curiosity...Why are the IDs in Hex format? ..and why not have a different separator for each Window listing instead of pipes between everything?

Answer:

The window ID is a specially formatted string that represents a 'pseudo-handle' of the window, that only WinBatch recognizes.

Windows IDs are recognized by all functions that also accept a partial window name.

Note: You can use cWinIdConvert to convert between a true Windows handle and a Window Id (pseudo-handle). If you pass in a Windows handle, the function returns the corresponding Window ID. Conversely, if you pass in a Window ID, the function returns the corresponding Window handle. List of window titles and their corresponding window ID's,in the form: "window1-name|window1-ID|window2-name|window2-ID|..." I agree it would have been easier to parse using some other delimiter between each window1-name and window1-ID'grouping'. However it has remained this way to assure backward compatibility.


Article ID:   W17901
Filename:   WinItemizeEx.txt
File Created: 2010:04:12:12:04:52
Last Updated: 2010:04:12:12:04:52