Skip to content

Get information (process filename) about the currently active (foreground) window

License

Notifications You must be signed in to change notification settings

makssof/go-active-process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-Active-Process

This package allows you to get information (process filename) about the currently active (foreground) window.

Note: works only on Windows OS!

GoDoc Release License

Content

Installation

To install the package just run:

go get -u github.com/makssof/go-active-process

Usage

package main

import (
    "fmt"

    ActiveProcess "github.com/makssof/go-active-process"
)

func main() {
    activeProcess, err := ActiveProcess.Get()

    if err != nil {
        fmt.Println(fmt.Errorf("error: %v", err))
    } else {
        fmt.Println(activeProcess)
    }
}

Contribution

The package is open-sourced under the MIT license.

If you will find some error, want to add something or ask a question - feel free to create an issue and/or make a pull request.

Any contribution is welcome.

About

Get information (process filename) about the currently active (foreground) window

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages