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