vvin

package module
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 15 Imported by: 0

README

keep waking Windows up

MIT License

Usage

package main

import (
	"git.bigun.dev/evan/vvin"
)

// program implements vvin

func main() {

	// Bring this program's window to the top.
	err := vvin.Vvin([]string{"topmost"})
	if err != nil {
		log.Println(err)
	}
}

Sub commands:
  minimize, min     minimize/restore
  maximize, max     maximize/restore
  resize, move, mv  resize/move
  alpha             set alpha 0%(transparent) - 100%(opaque)
  topmost           set always on top/restore
  wait              wait for a window is opened/closed ([--close] {Title})

Options:
  -t, --target WINDOW_TITLE  default to current window

minimize/restore

vvin.Vvin([]string{"-t", "notepad", "min"})

vvin.Vvin([]string{"-t", "notepad", "min", "--restore"})
vvin.Vvin([]string{"-t", "notepad", "min", "-r"})

resize

vvin.Vvin([]string{"-t", "notepad", "resize", "-x", "0", "-y", "0", "-w", "60%", "-h", "100%"})

alpha

vvin.Vvin([]string{"-t", "notepad", "alpha", "75%"})

always on top

vvin.Vvin([]string{"-t", "notepad", "topmost"})

vvin.Vvin([]string{"-t", "notepad", "topmost", "--restore"})
vvin.Vvin([]string{"-t", "notepad", "topmost", "-r"})

wait

wait for a window to appear
vvin.Vvin([]string{"wait", "notepad"})
wait closed
vvin.Vvin([]string{"wait", "notepad", "--closed"})

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

View Source
var Version string = "0.9.0"

Version is app version

Functions

func Start

func Start(args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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