mirror of
https://github.com/yv1ing/ShotRDP.git
synced 2025-09-16 15:10:57 +08:00
修改截图调用方式,加入可选的尺寸参数
This commit is contained in:
22
client/shotClient_test.go
Normal file
22
client/shotClient_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetScreen(t *testing.T) {
|
||||
/* 测试成功版本:
|
||||
Windows Server 2008 ✔
|
||||
Windows Server 2012 ✔
|
||||
Windows Server 2016 ✔
|
||||
Windows 7 ✔
|
||||
Windows 10 ✔
|
||||
*/
|
||||
|
||||
imgBytes, err := RealGetScreen("127.0.0.1:3389", 1024, 800)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
t.Logf("Length of imgBytes: %v", len(imgBytes))
|
||||
}
|
||||
Reference in New Issue
Block a user