-
Notifications
You must be signed in to change notification settings - Fork 44
/
backend.go
143 lines (114 loc) · 3.72 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
139
140
141
142
143
// 后台
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)
}
func (com *Dmsoft) SetInputDm(dm_id, rx, ry int) int {
ret, _ := com.dm.CallMethod("SetInputDm", dm_id, rx, ry)
return int(ret.Val)
}