Forum Discussion
AlexeyKolosov
15 years agoStaff
Hi Anh,
You can use the following code:
[JScript]
function sample()
{
var firefoxProcesses = VBArray(Sys.FindAllChildren("ProcessName", "firefox")).toArray();
Log.Message("There are " + firefoxProcesses.length + " Firefox processes running in the system.");
for (var i = 0; i < firefoxProcesses.length; i++)
{
var pagesCount = VBArray(firefoxProcesses.FindAllChildren("Name", "Page*")).toArray().length;
Log.Message("Process #" + i + " has " + pagesCount + " pages opened.");
}
}
Related Content
- 9 years agoJurgenDevlieg
- 4 years agoGunacelan
Recent Discussions
- 6 hours agoSvetaG