-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXSplit-Combos-pieceof.pie
213 lines (178 loc) · 5.12 KB
/
XSplit-Combos-pieceof.pie
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
// XSplit helper Script, Wiimote, By SuperRoach/Brett James
// https://github.com/SuperRoach/GlovePie-scripts / http://brettjamesonline.com
// Rev 1.0
/*
Controls:
The idea of this script is to help control xsplit presentations easier.
The directional pad on a wiimote is mapped to scene changes (4)
While the One and Two buttons are mapped to emulate the mouse clicks (Left and right)
to change presentation slides and ingame spectator.
This version has extra keys mapped to access more scenes.
This method can be a bit awkward for live presentations so I recommend the
plain XSplit-pieceof.pie if you are using it for that.
In this one, Hold the B button then press a directional button to
get to one of the extra scenes you have mapped.
The directional buttons will show you what was the last scene was incase you forget via the LED indicators.
The A, Plus and Minus Keys are free to map a function too, which could be good for push to talk.
*/
// This is the button used to Start and stop recording (Mapped to home button)
Control+Alt+Shift+S = var.ToggleRecording
// The Scenes used on the directional pad
Control+Alt+Shift+Q = wiimote.Up
Control+Alt+Shift+W = wiimote.Left
Control+Alt+Shift+E = wiimote.Down
Control+Alt+Shift+A = wiimote.Right
mouse.LeftButton = wiimote.One
mouse.RightButton = wiimote.Two
//tab = wiimote.B
// Extra scenes, done by holding the B Button along with the directional button
Control+Alt+Shift+U = (wiimote.Up) and (not wiimote.B)
Control+Alt+Shift+J = (wiimote.Left) and (not wiimote.B)
Control+Alt+Shift+M = (wiimote.Down) and (not wiimote.B)
Control+Alt+Shift+I = (wiimote.Right) and (not wiimote.B)
// Uncomment or change these as you need
// alt+tab = wiimote.A
// VolumeUp = wiimote.Plus
// VolumeDown = wiimote.Minus
// What type of light we should use for the
var.Recording = 12
var.LedStatus = 0
var.CheckRate = 10
var.Pacing = false // If this is enabled, a brief rumble will occur for each minute to help practice your timing.
var.PaceTime = 60 Seconds // the amount between prompting.
pie.FrameRate = 15hz
var.ToggleRecording = wiimote.Home
if Wiimote.Up then
Wiimote.Led1=true
Wiimote.Led2=false
Wiimote.Led3=false
Wiimote.Led4=false
var.LedStatus = Wiimote.Leds
wait 500ms
end
if Wiimote.left then
Wiimote.Led1=false
Wiimote.Led2=true
Wiimote.Led3=false
Wiimote.Led4=false
var.LedStatus = Wiimote.Leds
wait 500ms
end
if Wiimote.Down then
Wiimote.Led1=false
Wiimote.Led2=false
Wiimote.Led3=true
Wiimote.Led4=false
var.LedStatus = Wiimote.Leds
wait 500ms
end
if Wiimote.Right then
Wiimote.Led1=false
Wiimote.Led2=false
Wiimote.Led3=false
Wiimote.Led4=true
var.LedStatus = Wiimote.Leds
wait 500ms
end
if var.Pacing then
wait var.PaceTime
var.LedStatus = Wiimote.Leds
Wiimote.Leds = 12
wait 500ms
Wiimote.Leds = var.LedStatus
end
if var.ToggleRecording then
wait 200ms
//debug = Window.Title
// If the XSplit window has focus, attempt to check its status.
// Note for very short recordings, the notification window will obfuscate this status.
if Window.BeforeDash = "Acquiring stream configuration"
debug = "We have detected you to begin recording."
Wiimote.Rumble = true
wait 25ms
Wiimote.Rumble=false
elseif Window.BeforeDash = "XSplit Broadcaster"
debug = "We have detected you to have finished recording."
Wiimote.Rumble = true
wait 40ms
Wiimote.Rumble = false
wait 120ms
Wiimote.Rumble = true
wait 40ms
Wiimote.Rumble = false
else
debug = "Unable to determine recording status"
end
// Regardless of the grabbed status, we still want to blink
var.LedStatus = Wiimote.Leds
Wiimote.leds = 16
wait 200 ms
Wiimote.leds = 15
wait 1200 ms
Wiimote.Leds = var.LedStatus
end
if starting then
var.init=false
Wiimote.Rumble = true
wait 50ms
Wiimote.Rumble=false
Wiimote.Led1=false
Wiimote.Led2=false
Wiimote.Led3=false
Wiimote.Led4=false
wait 50ms
Wiimote.Led1=true
Wiimote.Led2=false
Wiimote.Led3=false
Wiimote.Led4=false
wait 50ms
Wiimote.Led1=false
Wiimote.Led2=true
Wiimote.Led3=false
Wiimote.Led4=false
wait 50ms
Wiimote.Led1=false
Wiimote.Led2=false
Wiimote.Led3=true
Wiimote.Led4=false
wait 50ms
Wiimote.Led1=false
Wiimote.Led2=false
Wiimote.Led3=false
Wiimote.Led4=true
wait 50ms
Wiimote.Led1=false
Wiimote.Led2=false
Wiimote.Led3=false
Wiimote.Led4=false
wait 50ms
Wiimote.Led1=true
Wiimote.Led2=true
Wiimote.Led3=true
Wiimote.Led4=true
// init end
// Let user know if pacing is on
if var.pacing = true then
Wiimote.Led1=true
Wiimote.Led2=true
Wiimote.Led3=true
Wiimote.Led4=false
wait 100ms
Wiimote.Led1=true
Wiimote.Led2=true
Wiimote.Led3=true
Wiimote.Led4=true
wait 100ms
Wiimote.Led1=true
Wiimote.Led2=true
Wiimote.Led3=true
Wiimote.Led4=false
wait 100ms
Wiimote.Led1=true
Wiimote.Led2=true
Wiimote.Led3=true
Wiimote.Led4=true
wait 100ms
end
// At this point all lights are on, waiting for a press.
end