#module
#define DIID_DWebBrowserEvents2 "{34A715A0-6587-11D0-924A-0020AFC7AC4D}"
#define DISPID_COMMANDSTATECHANGE 105
#define DISPID_BEFORENAVIGATE2 250
#define DISPID_NAVIGATECOMPLETE2 252
#define DISPID_ONQUIT 253
#define DISPID_ONMENUBAR 256
#define DISPID_ONSTATUSBAR 257
#define DISPID_ONFULLSCREEN 258
#define DISPID_WINDOWSETLEFT 264
#define DISPID_WINDOWSETTOP 265
#define DISPID_WINDOWSETWIDTH 266
#define DISPID_WINDOWSETHEIGHT 267
#define DISPID_ONTHEATERMODE 260
//-------------------------------------------
// BrowserMove var p1
//-------------------------------------------
//
// Ì¿ÎáÀâÌÀ
//
// »ØÄꤷ¤¿url¤Ø°ÜÆ°¤·¤Þ¤¹
// p1¤Çurl¤ò»ØÄꤹ¤ëÊÑ¿ô¤òÀßÄꤷ¤Þ¤¹
//
//-------------------------------------------
#deffunc BrowserMove var prm1
ie->"Navigate" prm1
return 0
//-------------------------------------------
// BrowserDraw var p1
//-------------------------------------------
//
// Ì¿ÎáÀâÌÀ
//
// ¥Ö¥é¥¦¥¶¤òÉÁ²è¤·¤Þ¤¹
// p1¤Çurl¤ò»ØÄꤹ¤ëÊÑ¿ô¤òÀßÄꤷ¤Þ¤¹
//
//-------------------------------------------
#deffunc BrowserDraw var prm1
axobj ie, "Shell.Explorer.2",1100,700
num=stat
comevent ie_event, ie, DIID_DWebBrowserEvents2,*TestBrowser
ie->"Navigate" prm1
dispid = comevdisp(ie_event)
stop
*TestBrowser
if dispid = DISPID_BEFORENAVIGATE2 {
comevarg name,ie_event,1
objprm inputid,name
}
if dispid = DISPID_NAVIGATECOMPLETE2 {
pDoc = ie("Document")
name = pDoc("Title")
delcom pDoc
}
return 0
//-------------------------------------------
// BrowserBack
//-------------------------------------------
//
// Ì¿ÎáÀâÌÀ
//
// Á°¤ÎURL¤ØÌá¤ê¤Þ¤¹
//
//-------------------------------------------
#deffunc BrowserBack
ie->"GoBack"
return 0
//-------------------------------------------
// BrowserForward
//-------------------------------------------
//
// Ì¿ÎáÀâÌÀ
//
// ¼¡¤ÎURL¤Ø¿Ê¤ß¤Þ¤¹
//
//-------------------------------------------
#deffunc BrowserForward
ie->"GoForward"
return 0
#global
sdim url,512
url="https://www.google.co.jp/"
screen 0,1100,750,0
title "¥Ö¥é¥¦¥¶"
color 0,0,0
objmode 2
font "¥á¥¤¥ê¥ª",12,0
objsize 60,30
pos 10,10
button "<<",*Back
pos 75,10
button ">>",*Forward
pos 340,18
mes "URL:"
pos 370,15
input url,630,20
pos 1008,10
button "GO",*Go
pos 0,50
BrowserDraw url
stop
*Back
BrowserBack
stop
*Forward
BrowserForward
stop
*Go
BrowserMove url
stop
¥¨¥é¡¼Ëɻߤΰ١¢¤Á¤ç¤Ã¤ÈÊѤʥ¹¥¯¥ê¥×¥È¤Ç¤¹¤¬¤É¤¦¤Ç¤·¤ç¤¦¤«¡©
¤¢¤È¡¢
url ¤Ï https:// ¤òÉÕ¤±¤Æ¤ª¤¤Þ¤·¤ç¤¦¡£
ÉÕ¤±¤Ê¤¤¤ÈÀµ¤·¤¤URL¤¬É½¼¨¤µ¤ì¤Ê¤¤»þ¤¬Í¤ê¤Þ¤¹¤Î¤Ç¡¢
»²¹Í¤Ë¤·¤Æ¤¯¤ì¤ë¤È´ò¤·¤¤¤Ç¤¹(^^