Weilong Wang

Results 17 comments of Weilong Wang

Same question. [func ToBitmapBytes(bit C.MMBitmapRef) []byte](https://github.com/go-vgo/robotgo/blob/master/robotgo.go#L851) convert `C.MMBitmapRef` to `[]byte`. But how to convert `[]byte` to `C.MMBitmapRef`?

https://github.com/go-vgo/robotgo/issues/87 Only Windows you can try package `github.com/lxn/win`. ```go var rect win.RECT win.GetWindowRect(hwnd, &rect) posionX := int(rect.Left) posionY := int(rect.Top) hwndWidth := int(rect.Right - rect.Left) hwndHeight := int(rect.Bottom - rect.Top)...

The reason is **keypress delay**. Such as _**keydown w -> wait 300ms -> keyup w**_. In the 300ms, hook callback action `robotgo.KeyTap("enter")`, trigger `EventHook()`. at the same time you _**keydown...

This func `robotGo.typestr` call win32 api [SendInput](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendinput) on win, not keyboard input. So in some software, this method is forbidden. Such as you opened 360 this func is invalid. QQ...

You can try [upx](https://upx.github.io/). The bin change 5.8M to 2.1M on my test. Another way to is split package robotgo. This is unnecessary I think. Such as split `github.com/go-vgo/robotgo` to...

Hi there, about your confused: - How to use .KeyToggle ```golang // press 'j' robotgo.KeyToggle("j", "down") robotgo.KeyToggle("j", "up") // press 'ctrl+j' robotgo.KeyToggle("j", "down", "ctrl") robotgo.KeyToggle("j", "up", "ctrl") ``` - Why...

我也遇到这个问题,如输入`乐`,想返回:`['yue', 'le']`

题主你好,我使用 **三-2** 的方法,能 load js文件,但里面的js代码不执行,啥情况? 测试:https://yeuk.github.io/test/loadjs.html ,没加载出gist 对比:https://yeuk.github.io/test/loadjs2.html ,希望出现的效果

Because of the "image" can't parse .ico file. Just use this package: go get github.com/mat/besticon/ico ```go // Copyright 2011 The Walk Authors. All rights reserved. // Use of this source...

For field "php_bin" enter the path to the php.exe Example: "php_bin":"c:/PHP/php.exe"