qianniancn / go-dmsoft

go 调用大漠插件
110 stars 44 forks source link

大漠dllAPI部分缺少得问题 #12

Closed aishuaikang closed 1 year ago

aishuaikang commented 1 year ago

希望完善,谢谢大佬

aishuaikang commented 1 year ago

// func (com DmSoft)FindPicMem(x1, y1, x2, y2, pic_info, delta_color,sim, dir,intX, intY) int{} // func (com DmSoft)FindPicMemE(x1, y1, x2, y2, pic_info, delta_color,sim, dir,intX, intY) string{} // func (com DmSoft)FindPicMemEx(x1, y1, x2, y2, pic_info, delta_color,sim, dir,intX, intY) string{} // func (com DmSoft)FindShape(x1, y1, x2, y2, offset_color,sim, dir,intX,intY) int{} // func (com DmSoft)FindShapeE(x1, y1, x2, y2, offset_color,sim, dir,intX,intY) string{} // func (com DmSoft)FindShapeEx(x1, y1, x2, y2, offset_color,sim, dir,intX,intY) string{} // func (com DmSoft)FreePic(pic_name) int{} // func (com DmSoft)GetScreenData(x1, y1, x2, y2) int{} // func (com DmSoft)GetScreenDataBmp(x1,y1,x2,y2,data,size) int{} // func (com DmSoft)ImageToBmp(pic_name,bmp_name) int{} // func (com DmSoft)LoadPic(pic_name) int{} // func (com DmSoft)LoadPicByte(addr,size,pic_name) int{} // func (com *DmSoft)LoadPic(pic_name) int{}

qianniancn commented 1 year ago

这些并不常用吧,你可以自己添加然后提交一个pr

aishuaikang commented 1 year ago

这些并不常用吧,你可以自己添加然后提交一个pr

试过了 pr扔进去后 并没拿到需要的值

qianniancn commented 1 year ago

后缀是E,是针对易语言的API

aishuaikang commented 1 year ago

// func (com *DmSoft)GetScreenDataBmp(x1,y1,x2,y2,data,size) int{}

其实用到的就这写 // func (com DmSoft)FreePic(pic_name) int{} // func (com DmSoft)GetScreenData(x1, y1, x2, y2) int{} // func (com DmSoft)GetScreenDataBmp(x1,y1,x2,y2,data,size) int{} // func (com DmSoft)ImageToBmp(pic_name,bmp_name) int{} // func (com DmSoft)LoadPic(pic_name) int{} // func (com DmSoft)LoadPicByte(addr,size,pic_name) int{} // func (com *DmSoft)LoadPic(pic_name) int{} 对桌面截图以及图片的处理

qianniancn commented 1 year ago

下次添加一下吧

aishuaikang commented 1 year ago

下次添加一下吧

跪谢

qianniancn commented 1 year ago

添加好了

    var data, size int
    dm.GetScreenDataBmp(0, 0, 800, 800, &data, &size)
    bs := *(*[]byte)(unsafe.Pointer(&_bytes{
        data,
        size,
    }))
    os.WriteFile("test.bmp", bs, os.ModePerm)
aishuaikang commented 1 year ago

爱你