mIRC Home    About    Download    Register    News    Help

Print Thread
#190363 19/11/07 06:53 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
How I go about returning the applications that're running in my taskbar?

I'm not talking about the processes, more along the lines of this.


Regards.


What do you do at the end of the world? Are you busy? Will you save us?
Jigsy #190414 20/11/07 04:18 PM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
I've searched so many hours since i've seen your post here, and finally, i think i have something that can help you.
I'm using cwnd.dll to get each window opened. :

Code:
alias app.f {
  tokenize 9 $1-
  if ($6 == 0) && ($cwnd(isWindowVisible,$1)) && ($remove($2,",Program Manager)) aline @app $remove($2,")
}

alias appwin {
  if ($window(@app)) window -c $v1
  window @app
  noop $cwnd(listing,app.f $1-)
}

alias cwnd {
  if ($isid) {
    var %res = $dll($scriptdircwnd.dll,$1,$2-)
    if ($prop != $null) return $gettok(%res,$prop,32)
    return %res
  }
  dll " $+ $scriptdircwnd.dll" $1-
}


So for me, there is just one thing that isn't a application of my taskbar and that is /aline to the window, but since i don't know if this happened on all windows version, i decided to let it.

/appwin to use it.
Hope this will help you smile

Edit : i've searched for a Com object, but found nothing...

Edit2 : i've edited the code : how are display the info and i add something to remove a window that isn't a application, look better now

Last edited by Wims; 20/11/07 07:04 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #190415 20/11/07 04:23 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Alrighty. Thank you. smile


What do you do at the end of the world? Are you busy? Will you save us?

Link Copied to Clipboard