goautoit

package module
v0.0.0-...-4aa9ce2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: MIT Imports: 1 Imported by: 0

README

goautoit

golang invoke autoit function through AutoItX3.dll

Install

go get -u github.com/shadow1163/goautoit

Example

  • open notepad
  • type some string into notepad, eg: "hello world"
  • close notepad without saving
goautoit.Run("notepad.exe")
goautoit.WinWait("Untitled")
goautoit.Send("hello world")
goautoit.WinClose("Untitled")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAdmin

func IsAdmin() int

IsAdmin -- Checks if the current user has full administrator privileges.

func ProcessClose

func ProcessClose(process string) int

ProcessClose -- Terminates a named process.

func ProcessExists

func ProcessExists(process string) int

ProcessExists -- Checks to see if a specified process exists.

func ProcessSetPriority

func ProcessSetPriority(process string, priority int) int

ProcessSetPriority -- Changes the priority of a process.

func ProcessWait

func ProcessWait(process string, args ...interface{}) int

ProcessWait -- Pauses script execution until a given process exists.

func ProcessWaitClose

func ProcessWaitClose(process string, args ...interface{}) int

ProcessWaitClose -- Pauses script execution until a given process does not exist.

func RunAs

func RunAs(user, domain, password string, loginFlag int, szProgram string, args ...interface{}) int

RunAs -- Runs an external program under the context of a different user.

func RunAsWait

func RunAsWait(user, domain, password string, loginFlag int, szProgram string, args ...interface{}) int

RunAsWait -- Runs an external program under the context of a different user and pauses script execution until the program finishes.

func RunWait

func RunWait(szProgram string, args ...interface{}) int

RunWait -- Runs an external program and pauses script execution until the program finishes. flag 3(max) 6(min) 9(normal) 0(hide)

Types

This section is empty.

Jump to

Keyboard shortcuts

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