-
Notifications
You must be signed in to change notification settings - Fork 2
/
pupscript_js.pup
39 lines (28 loc) · 1.13 KB
/
pupscript_js.pup
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
//'********PupB2S Scripting JSCRIPT
function StartUp() {
//var myMsgBox=new ActiveXObject("wscript.shell");
//myMsgBox.Popup ("hello There");
var fan = new ActiveXObject("FanPlugin.Wrapper.Fan");
fan.selectSingleVideoPlaybackMode();
fan.playVideoWithId(3);
}
function PuPClose() {
}
// only have this function if needed as it will take up resources. you will need to remove the xxxx in function name to enable it every second
function TimerXXXXSecond() {
var myMsgBox=new ActiveXObject("wscript.shell");
myMsgBox.Popup ("every second");
}
//********************* ALL PUP/ROM EVENTS HERE Like "D",100,1 would be d100=1
function GetEvent(eType, eIndex, eValue) {
//var myMsgBox=new ActiveXObject("wscript.shell");
//myMsgBox.Popup (eType +" "+ eIndex +" "+ eValue);
if (eIndex == 7 && eType == "D" && eValue == 1) {
var fan = new ActiveXObject("FanPlugin.Wrapper.Fan");
fan.playVideoWithId(5);
};
if (eIndex == 0 && eType == "D" && eValue == 1) {
var fan = new ActiveXObject("FanPlugin.Wrapper.Fan");
fan.playVideoWithId(6);
};
}