aviasd wrote:

> I now understand what you mean , explorer and total commander for 
> example dont create a seperate process for each new window they 
> open , but most apps do (notepad as well), so I think getting all 
> process ids  by the same exe name( which are already sorted by 
> creation date (pid)) could work pretty well for me for now.

I think that in some versions of Windows (XP too I think) pids are unrelated to 
process creation date, pids 
are re-used. A process may have multiple windows, some visible, some invisible.

The script does not get all pids by the same exename, it gets visible window 
handles by the same 
exename. I just tried the script with two instances of total commander, and it 
seems to work OK.

Reply via email to