Skip to content

v1.3.391

Latest
Compare
Choose a tag to compare
@twgh twgh released this 07 Jul 07:37
· 2 commits to main since this release

一、新增函数

xc.Itoa                 //将int32转换到string
xc.Atoi                 //将string转换到int32
wutil.NewHookKeyboard   //创建全局键盘钩子
wutil.NewHookMouse      //创建全局鼠标钩子

二、其他

  1. 应该用int32类型的参数已经全部更改完毕, 以前用int是历史遗留问题。
  2. 第一个影响是原来用strconv包来转换int的现在可能要用xc包的来转换了。
  3. 第二个影响是原本for i := 0, 可能要改用for i := int32(0), 因为循环内的函数现在可能要用int32的索引。
  4. wParam和lParam改为uintptr类型,影响了几个事件回调函数定义。
  5. 其实我自己的项目包括例子仓库看了下也没改几个地方,影响应该不大。