blob: a49df9eae3f61c793a1c2f42797a2d515d91cafd (
plain)
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
|
fqterm.import("utils.js");
fqterm.mouseEvent = function(type, states, x, y, delta) {
if (type == fqterm.MOUSEEVENT.MOUSE_PRESS &&
states & fqterm.BUTTONSTATE.LEFT_BUTTON &&
states & fqterm.BUTTONSTATE.CTRL) {
fqterm.msgBox(fqterm.getFullTextAt(y, x, 1));
}
return false;
}
fqterm.detectMenu = function() {
fqterm.setMenuRect(1, 3, 20);
return false;
}
fqterm.antiIdle = function() {
//fqterm.msgBox("antiIdle");
return false;
}
fqterm.onBell = function() {
//fqterm.msgBox("onBell");
}
fqterm.autoReply = function() {
//fqterm.msgBox("autoReply");
return false;
}
fqterm.dataEvent = function() {
//fqterm.msgBox("data event");
}
fqterm.keyEvent = function(type, states, key) {
// if (type == fqterm.KEYEVENT.KEY_PRESS &&
// states & fqterm.BUTTONSTATE.CTRL && key) {
// fqterm.msgBox(key);
// }
}
var timeEvent = function() {
//fqterm.msgBox("haha");
}
var id = fqterm.setInterval(1000, timeEvent);
//fqterm.clearInterval(id);
|