|
-
Nov 25th, 1999, 01:24 AM
#1
Thread Starter
Member
Ok, this is my second try, hehe. I want to get the processes running that show up on the Windows Taskbar. I have a function that gets ALL processes and converts them into window names, and another that just lists the exes that windows runs (not background hidden things like kernel calls) and has the process ID, but I need only get the programs that the Windows user ran.
------------------
-Mystiq
-
Nov 27th, 1999, 07:34 PM
#2
Hyperactive Member
u just have to run a check on the tasklist when windows start and for example each 1 minute make ur program refresh the list and compare with the initial one ... i hope this helps ...
- regards -
- razzaj -
-
Nov 28th, 1999, 02:26 AM
#3
Thread Starter
Member
I have that done now, but the next problem is i cant "AppActivate" an application if it is minimized How is that done?
------------------
-Mystiq
-
Nov 28th, 1999, 03:06 AM
#4
Guru
If you have the handle of the window, you get get the window position using the GetWindowPlacement API and examine one element of the WINDOWPLACEMENT type (don't remember which one, sorry), modify that element, and call SetWindowPlacement API to restore or maximize that window. If it does not have focus at that time, then you can call appactivate or use the setfocus API. Sorry, I don't have the code right with me, but if you're somewhat handy with the API this should get you started.
HTH
Tom
[This message has been edited by Clunietp (edited 11-28-1999).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|