10-16-2008, 05:59 PM
I have 2+ command prompt (cmd.exe) windows open on my desktop. My goal is detect all those windows though their handlers. I tried extended foreach-command with userdefined function but somehow it shows the last cmd.exe window handler.
Macro code:
and function "myenumhandles" code:
Macro code:
str exename="cmd.exe"
str item coll
foreach item coll.from(myenumhandles(exename))
out item
and function "myenumhandles" code: