windowz

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 1 Imported by: 1

README

windowz

A command line utility (and library) to set the z order of the foreground window after a delay, for Windows, written in Go/Golang.

Install

  1. go get harrisonhjones.com/go-windowz...
  2. Add windowz.exe to your PATH

Usage

windowz --help

Examples

Set the foreground window to topmost in 5 seconds:

windowz

To "undo" set it to nottopmost (and optionally wait just 3 seconds):

windowz -d 3s -z nottopmost

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(hwnd syscall.Handle, zOrder ZOrder) error

SetWindowZ sets a window's Z order. An error is returned if encountered.

Types

type ZOrder

type ZOrder uint
const (
	WINDOW_BOTTOM    ZOrder = 1
	WINDOW_NOTOPMOST ZOrder = ZOrder(^uint(0) - 1)
	WINDOW_TOP       ZOrder = 0
	WINDOW_TOPMOST   ZOrder = ZOrder(^uint(0))
)

See https://msdn.microsoft.com/en-us/library/windows/desktop/ms633545(v=vs.85).aspx

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL