#85013 - 2002-01-30 11:15 PM
List All windows on desktop
|
DEEJAYSEE
Lurker
Registered: 2002-01-30
Posts: 4
|
Hey All, I have searched the all boards and not found an answer to this one.I would like to list all active windows and read it into a string or array. I think the com object to do this is something like this: r = FindWindowLike(hWnds(), 0, "*", "*", Null) Could someone mock up a quick script that does this or get me started down the right path? TIA PS, I am using kix to launch some apps inside citrix and move around files and I need to know if a specific app is running or not so I think this is the best way to do that!
|
|
Top
|
|
|
|
#85014 - 2002-01-31 04:29 PM
Re: List All windows on desktop
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
DEEJAYSEE,Welcome to the board! Have you thought about using this utility - PSLIST? If you have using UNIX or releated OS, it is similar to ps (Process List and display) and when used in conjunction with PSKILL it is like the UNIX kill (kill a process) Program. That is you can kill processes by ID.. When you talk about hWnds for example, are you trying to write something in VB? Are you trying to determine not only if a task is active, but what the Window position is? Thanks! - Kent
|
|
Top
|
|
|
|
#85016 - 2002-01-31 04:46 PM
Re: List All windows on desktop
|
DEEJAYSEE
Lurker
Registered: 2002-01-30
Posts: 4
|
I tried Pslist at your suggestion and on a citrix server it lists processes for all users. I need to know if a process is running for a specific user. Thanks for the suggestion.To Answer you second question, No I am not trying to write it in vb. I just researched the call on msdn and I would like to try to use it in a kix script with com/ole (Kix I know, VB I don't know).
|
|
Top
|
|
|
|
#85019 - 2002-01-31 06:15 PM
Re: List All windows on desktop
|
DEEJAYSEE
Lurker
Registered: 2002-01-30
Posts: 4
|
Lonkero, Are you saying use the setfocus kix command? IF so I can't go down that road because it could freak the users out if another app suddently gets focus...Bryce, Unfortunately it does not show which user the process is running under, Thanks for the attempt..
|
|
Top
|
|
|
|
#85021 - 2002-01-31 06:32 PM
Re: List All windows on desktop
|
DEEJAYSEE
Lurker
Registered: 2002-01-30
Posts: 4
|
Got it!There is a command called query in citrix which gives me a specfic users processes... Thanks a bunch guys for pointing me in the right direction
|
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 2312 anonymous users online.
|
|
|