Results 1 to 4 of 4

Thread: Windows Task List

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 1999
    Location
    NY
    Posts
    45

    Post

    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

  2. #2
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261

    Post

    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 -

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 1999
    Location
    NY
    Posts
    45

    Post

    I have that done now, but the next problem is i cant "AppActivate" an application if it is minimized How is that done?

    ------------------
    -Mystiq

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    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
  •  



Click Here to Expand Forum to Full Width