mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
add max and min go func
This commit is contained in:
parent
cc6ebbbf33
commit
409c2361f3
20
robotgo.go
20
robotgo.go
@ -1286,6 +1286,26 @@ func GetActive() C.MData {
|
|||||||
return mdata
|
return mdata
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MinWindow set the window min
|
||||||
|
func MinWindow(pid int32, state bool, args ...int) {
|
||||||
|
var hwnd int
|
||||||
|
if len(args) > 0 {
|
||||||
|
hwnd = args[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
C.min_window(C.uintptr(pid), C.bool(state), C.uintptr(hwnd))
|
||||||
|
}
|
||||||
|
|
||||||
|
// MaxWindow set the window max
|
||||||
|
func MaxWindow(pid int32, state bool, args ...int) {
|
||||||
|
var hwnd int
|
||||||
|
if len(args) > 0 {
|
||||||
|
hwnd = args[0]
|
||||||
|
}
|
||||||
|
|
||||||
|
C.max_window(C.uintptr(pid), C.bool(state), C.uintptr(hwnd))
|
||||||
|
}
|
||||||
|
|
||||||
// CloseWindow close the window
|
// CloseWindow close the window
|
||||||
func CloseWindow() {
|
func CloseWindow() {
|
||||||
C.close_window()
|
C.close_window()
|
||||||
|
Loading…
Reference in New Issue
Block a user