mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
update version number
This commit is contained in:
parent
1ec411fd39
commit
2a813b1e31
@ -70,7 +70,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// Version get the robotgo version
|
// Version get the robotgo version
|
||||||
Version string = "v0.50.0.647, The Appalachian Mountains!"
|
Version string = "v0.50.0.666, The Appalachian Mountains!"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetVersion get the robotgo version
|
// GetVersion get the robotgo version
|
||||||
|
@ -30,7 +30,7 @@ Bounds get_bounds(uintptr pid, uintptr isHwnd){
|
|||||||
CGPoint p; CGSize s;
|
CGPoint p; CGSize s;
|
||||||
// Attempt to convert both values into atomic types
|
// Attempt to convert both values into atomic types
|
||||||
if (AXValueGetValue(axp, kAXValueCGPointType, &p) &&
|
if (AXValueGetValue(axp, kAXValueCGPointType, &p) &&
|
||||||
AXValueGetValue(axs, kAXValueCGSizeType, &s)){
|
AXValueGetValue(axs, kAXValueCGSizeType, &s)){
|
||||||
bounds.X = p.x;
|
bounds.X = p.x;
|
||||||
bounds.Y = p.y;
|
bounds.Y = p.y;
|
||||||
bounds.W = s.width;
|
bounds.W = s.width;
|
||||||
@ -38,8 +38,8 @@ Bounds get_bounds(uintptr pid, uintptr isHwnd){
|
|||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
if (axp != NULL) { CFRelease(axp); }
|
if (axp != NULL) { CFRelease(axp); }
|
||||||
if (axs != NULL) { CFRelease(axs); }
|
if (axs != NULL) { CFRelease(axs); }
|
||||||
|
|
||||||
return bounds;
|
return bounds;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user