forked from qianniancn/go-dmsoft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
backend.go
138 lines (110 loc) · 3.58 KB
/
backend.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// 后台
package dmsoft
func (com *DmSoft) BindWindow(hwnd int, display string, mouse string, keypad string, mode int) int {
ret, _ := com.dm.CallMethod("BindWindow", hwnd, display, mouse, keypad, mode)
return int(ret.Val)
}
func (com *DmSoft) BindWindowEx(hwnd int, display string, mouse string, keypad string, public string, mode int) int {
ret, _ := com.dm.CallMethod("BindWindowEx", hwnd, display, mouse, keypad, public, mode)
return int(ret.Val)
}
func (com *DmSoft) DownCPU(rate int) int {
ret, _ := com.dm.CallMethod("DownCpu", rate)
return int(ret.Val)
}
func (com *DmSoft) EnableBind(enable int) int {
ret, _ := com.dm.CallMethod("EnableBind", enable)
return int(ret.Val)
}
func (com *DmSoft) EnableFakeActive(enable int) int {
ret, _ := com.dm.CallMethod("EnableFakeActive", enable)
return int(ret.Val)
}
func (com *DmSoft) EnableIme(enable int) int {
ret, _ := com.dm.CallMethod("EnableIme", enable)
return int(ret.Val)
}
func (com *DmSoft) EnableKeypadMsg(enable int) int {
ret, _ := com.dm.CallMethod("EnableKeypadMsg", enable)
return int(ret.Val)
}
func (com *DmSoft) EnableKeypadPatch(enable int) int {
ret, _ := com.dm.CallMethod("EnableKeypadPatch", enable)
return int(ret.Val)
}
func (com *DmSoft) EnableKeypadSync(enable, timeOut int) int {
ret, _ := com.dm.CallMethod("EnableKeypadSync", enable, timeOut)
return int(ret.Val)
}
func (com *DmSoft) EnableMouseMsg(enable int) int {
ret, _ := com.dm.CallMethod("EnableMouseMsg", enable)
return int(ret.Val)
}
func (com *DmSoft) EnableMouseSync(enable, timeOut int) int {
ret, _ := com.dm.CallMethod("EnableMouseSync", enable, timeOut)
return int(ret.Val)
}
func (com *DmSoft) EnableRealKeypad(enable int) int {
ret, _ := com.dm.CallMethod("EnableRealKeypad", enable)
return int(ret.Val)
}
func (com *DmSoft) EnableRealMouse(enable, mousedelay, mousestep int) int {
ret, _ := com.dm.CallMethod("EnableRealMouse", enable, mousedelay, mousestep)
return int(ret.Val)
}
func (com *DmSoft) EnableSpeedDx(enable int) int {
ret, _ := com.dm.CallMethod("EnableSpeedDx", enable)
return int(ret.Val)
}
func (com *DmSoft) ForceUnBindWindow() int {
ret, _ := com.dm.CallMethod("ForceUnBindWindow")
return int(ret.Val)
}
func (com *DmSoft) GetBindWindow() int {
ret, _ := com.dm.CallMethod("GetBindWindow")
return int(ret.Val)
}
func (com *DmSoft) GetFps() int {
ret, _ := com.dm.CallMethod("GetFps")
return int(ret.Val)
}
func (com *DmSoft) HackSpeed(rate int) int {
ret, _ := com.dm.CallMethod("HackSpeed", rate)
return int(ret.Val)
}
func (com *DmSoft) IsBind(hwnd int) int {
ret, _ := com.dm.CallMethod("IsBind", hwnd)
return int(ret.Val)
}
func (com *DmSoft) LockDisplay(lock int) int {
ret, _ := com.dm.CallMethod("LockDisplay", lock)
return int(ret.Val)
}
func (com *DmSoft) LockInput(lock int) int {
ret, _ := com.dm.CallMethod("LockInput", lock)
return int(ret.Val)
}
func (com *DmSoft) LockMouseRect(x1, y1, x2, y2 int) int {
ret, _ := com.dm.CallMethod("LockMouseRect", x1, y1, x2, y2)
return int(ret.Val)
}
func (com *DmSoft) SetAero(enable int) int {
ret, _ := com.dm.CallMethod("SetAero", enable)
return int(ret.Val)
}
func (com *DmSoft) SetDisplayDelay(time int) int {
ret, _ := com.dm.CallMethod("SetDisplayDelay", time)
return int(ret.Val)
}
func (com *DmSoft) SetDisplayRefreshDelay(time int) int {
ret, _ := com.dm.CallMethod("SetDisplayRefreshDelay", time)
return int(ret.Val)
}
func (com *DmSoft) SwitchBindWindow(hwnd int) int {
ret, _ := com.dm.CallMethod("SwitchBindWindow", hwnd)
return int(ret.Val)
}
func (com *DmSoft) UnBindWindow() int {
ret, _ := com.dm.CallMethod("UnBindWindow")
return int(ret.Val)
}