mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
add get mouse color function
This commit is contained in:
parent
9d92e0f852
commit
43e1594f59
@ -196,6 +196,12 @@ func GetPixelColor(x, y int) string {
|
|||||||
return gcolor
|
return gcolor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetMouseColor get the mouse pos's color
|
||||||
|
func GetMouseColor() string {
|
||||||
|
x, y := GetMousePos()
|
||||||
|
return GetPixelColor(x, y)
|
||||||
|
}
|
||||||
|
|
||||||
// ScaleX get primary display horizontal DPI scale factor
|
// ScaleX get primary display horizontal DPI scale factor
|
||||||
func ScaleX() int {
|
func ScaleX() int {
|
||||||
return int(C.scale_x())
|
return int(C.scale_x())
|
||||||
|
Loading…
Reference in New Issue
Block a user