Results 1 to 3 of 3

Thread: Get activate application name and details

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2010
    Posts
    277

    Get activate application name and details

    Hello everyone,

    I developed a form, this form is active all the time in windows task bar. I am looking for a solution, on every minute, get the name of application on which active user is working.
    Like on

    09.40 am Outlook.exe inbox - sales@jobsaeed.com
    09.41 am Explorer.exe
    09.42 am Chrome www.cnn.com


    I know I can use a minute timer but but question is who to get other information like app name and details.

    Thank you.

    Ladak

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    106,881

    Re: Get activate application name and details

    You would have to delve into unmanaged code, i.e. Windows API functions, for that. The first step would be to call the GetActiveWindow API to get the handle of the currently active window. You can then do whatever is required from there to get the information you need. That might be just getting the text of that window or it might be getting some information about the process that owns it. Researching how to call Windows API functions in general and that one in particular would be your first course of action.

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    23,963

    Re: Get activate application name and details

    For the WebBrowser current tab url...

    https://stackoverflow.com/questions/...-chrome-vb-net

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