Windows Screen Capture using Go?

agolangf · · 1336 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Is there some way to screen capture a Windows desktop using Go? or am i going to need a external program?</p> <hr/>**评论:**<br/><br/>albatr0s: <pre><p><a href="https://github.com/mattn/gyagowin">https://github.com/mattn/gyagowin</a></p></pre>kjk: <pre><p>It is. It&#39;s a 2-step process:</p> <ol> <li><p>Study <a href="https://github.com/ShareX/ShareX/tree/master/ShareX.ScreenCaptureLib" rel="nofollow">https://github.com/ShareX/ShareX/tree/master/ShareX.ScreenCaptureLib</a> to see which win32 API calls to make to capture the screen/window</p></li> <li><p>Translate that logic to Go. You can use one of few existing win32 api Go bindings (e.g. <a href="https://github.com/AllenDang/w32" rel="nofollow">https://github.com/AllenDang/w32</a>). If they&#39;re missing needed functionality, you can add more wrappers.</p></li> </ol></pre>mc_hammerd: <pre><p>probably use C pkg and write a header line for the relevant win32 api system call, and then use that func</p> <p>i dont got specifics tho :? maybe someone knows</p></pre>SaturnsVoid: <pre><p>The issue with that is i don&#39;t know C...</p></pre>sheepdog69: <pre><p>Try <a href="https://www.google.com/search?q=windows+screen+capture+Golang&amp;btnK=Google+Search" rel="nofollow">Google</a></p></pre>SaturnsVoid: <pre><p>I have looked on Google. The only ways i found would need the hosts computer to install a 3rd party program. (ImageMagick)</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1336 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传