diff --git a/robotgo.go b/robotgo.go index c7e4236..688d1cb 100644 --- a/robotgo.go +++ b/robotgo.go @@ -58,11 +58,12 @@ import ( "strings" "time" "unsafe" + // "syscall" "os/exec" "github.com/go-vgo/robotgo/clipboard" - "github.com/robotn/gohook" + hook "github.com/robotn/gohook" "github.com/shirou/gopsutil/process" "github.com/vcaesar/imgo" ) @@ -1606,6 +1607,12 @@ func PidExists(pid int32) (bool, error) { return abool, err } +// Is64Bit determine whether the sys is 64bit +func Is64Bit() bool { + b := C.Is64Bit() + return bool(b) +} + // Nps process struct type Nps struct { Pid int32