mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-29 21:43:55 +00:00
Update godoc and README.md
This commit is contained in:
parent
4302f69b95
commit
a6f18bc2b3
@ -59,7 +59,7 @@ GCC
|
||||
|
||||
#### For Mac OS X:
|
||||
|
||||
Xcode Command Line Tools (And Privacy setting: [#277](#277) )
|
||||
Xcode Command Line Tools (And Privacy setting: [#277](https://github.com/go-vgo/robotgo/issues/277) )
|
||||
|
||||
```
|
||||
xcode-select --install
|
||||
@ -70,7 +70,8 @@ xcode-select --install
|
||||
[MinGW-w64](https://sourceforge.net/projects/mingw-w64/files) (Use recommended)
|
||||
|
||||
```
|
||||
Or the other GCC (But you should compile the "libpng" with yourself. Or you can removed the bitmap.go.
|
||||
Or the other GCC (But you should compile the "libpng" with yourself.
|
||||
Or you can removed the bitmap.go.
|
||||
|
||||
In the plans, the bitmap.go will moves to the bitmap dir, but break the API. )
|
||||
```
|
||||
@ -114,7 +115,6 @@ sudo dnf install xsel xclip
|
||||
```
|
||||
go get github.com/go-vgo/robotgo
|
||||
```
|
||||
It's that easy!
|
||||
|
||||
png.h: No such file or directory? Please see [issues/47](https://github.com/go-vgo/robotgo/issues/47).
|
||||
|
||||
|
@ -55,7 +55,7 @@ GCC
|
||||
|
||||
#### For Mac OS X:
|
||||
|
||||
Xcode Command Line Tools (And Privacy setting: [#277](#277) )
|
||||
Xcode Command Line Tools (And Privacy setting: [#277](https://github.com/go-vgo/robotgo/issues/277) )
|
||||
|
||||
```
|
||||
xcode-select --install
|
||||
@ -66,7 +66,8 @@ xcode-select --install
|
||||
[MinGW-w64](https://sourceforge.net/projects/mingw-w64/files) (推荐使用)
|
||||
|
||||
```
|
||||
Or the other GCC (But you should compile the "libpng" with yourself. Or you can removed the bitmap.go )
|
||||
Or the other GCC (But you should compile the "libpng" with yourself.
|
||||
Or you can removed the bitmap.go )
|
||||
```
|
||||
|
||||
#### For everything else (Linux 等其他系统):
|
||||
@ -108,7 +109,6 @@ sudo dnf install xsel xclip
|
||||
```
|
||||
go get github.com/go-vgo/robotgo
|
||||
```
|
||||
It's that easy!
|
||||
|
||||
png.h: No such file or directory? Please see [issues/47](https://github.com/go-vgo/robotgo/issues/47).
|
||||
|
||||
|
@ -2,6 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build darwin || windows
|
||||
// +build darwin windows
|
||||
|
||||
package clipboard_test
|
||||
|
||||
import (
|
||||
|
@ -37,6 +37,10 @@ func internalGetTitle(pid int32, args ...int32) string {
|
||||
// ActivePID active the window by PID,
|
||||
//
|
||||
// If args[0] > 0 on the Windows platform via a window handle to active
|
||||
//
|
||||
// Examples:
|
||||
// ids, _ := robotgo.FindIds()
|
||||
// robotgo.ActivePID(ids[0])
|
||||
func ActivePID(pid int32, args ...int) error {
|
||||
var hwnd int
|
||||
if len(args) > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user