-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample_IE.js
More file actions
30 lines (26 loc) · 959 Bytes
/
sample_IE.js
File metadata and controls
30 lines (26 loc) · 959 Bytes
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
//!*script
// JScript / JScript(Chakra) / V8 / QuickJS 兼用
PPx.report(
"\r\n● " + PPx.ScriptName + "\r\n"+
"Script Engine: " + PPx.ScriptEngineName + "/" + PPx.ScriptEngineVersion + "\r\n");
var IE = PPx.CreateObject("InternetExplorer.Application", "ie_");
try {
IE._("trace"); // QuickJS のみ。イベントが発生したら全て PPx.report で通知
// IE._("info"); // QuickJS のみ。メソッド・プロパティの一覧を表示。
// IE._("event"); // QuickJS のみ。イベントの一覧を表示。
} catch(e) {};
IE.Visible = true;
IE.Navigate("http://toro.d.dooo.jp/");
PPx.DisconnectObject(IE); // イベント発生を止める
function ie_OnVisible(visible){
PPx.report("<<" + visible + (visible ? ":show>>" : ":hide>>"));
}
function ie_PropertyChange(prop){
PPx.report("<<Change:" + prop + ">>");
}
function ie_DownloadComplete(){
PPx.report("<<load Complete>>");
}
function ie_OnQuit(){
PPx.report("<<close>>");
}