From afd34f2893a06a3aecf17e8e83b1df6ed2ae91a2 Mon Sep 17 00:00:00 2001 From: iroul Date: Fri, 4 Apr 2014 07:35:14 -0700 Subject: move to my github. --- res/script/system.js | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 res/script/system.js (limited to 'res/script/system.js') diff --git a/res/script/system.js b/res/script/system.js new file mode 100644 index 0000000..a49df9e --- /dev/null +++ b/res/script/system.js @@ -0,0 +1,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); \ No newline at end of file -- cgit v1.2.3