なんかよくわからないのでスクリプトを書きます!!すいません・・・
#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
#usecom IOleInPlaceActiveObject "{00000117-0000-0000-C000-000000000046}"
#comfunc OIPAO_TranslateAccelerator 5 var
#include "user32.as"
#include "hspinet.as"
sdim url,51
url = "http://google.co.jp/"
*hometq
gkenq = ""
objsize 300,24
note = "お気に入り/お気に入り.txt"
pos 0,2:mes " URL:"
pos 0,26:mes "Kai Browser 0.1.2.0"
pos 40,0:input url
objsize 180,24
pos 400,0 : input gkenq
objsize 180,24
pos 460,26
sdim moji
a = -0
comboxtext = "機能\nページ自動更新\nフィードバックの送信"
combox a, 100, comboxtext
cb_id1 = stat
dialog
objsize 60,24
pos 160,24:button "更新",*ref
pos 220,24:button "<--",*go_b
pos 280,24:button "-->",*go_f
pos 340,0:button "移動",*wow
pos 340,24:button "+Fav",*pfav
pos 400,24:button "ホーム",*hob
pos 580,0:button "検索",*kensaku
pos 0,48
axobj ie, "Shell.Explorer.2",640,480-48
num=stat
comevent ie_event, ie, DIID_DWebBrowserEvents2,*event
ie->"Navigate" url
ie("Silent") = 1
*pr
querycom ieOIPAO, ie, IOleInPlaceActiveObject
onkey gosub *pushkey
repeat
wait 10
if a = 1 : goto *pag
if a = 2 : goto *feed
loop
*main
stop
*kensaku
gken = "http://www.google.co.jp/search?q="+gkenq+"
ie->"Navigate" gken
goto *main
*event
; COMイベント処理
dispid = comevdisp(ie_event)
if dispid = DISPID_BEFORENAVIGATE2 : gosub *OnBeforeNavigate
if dispid = DISPID_NAVIGATECOMPLETE2 : gosub *OnNavigateComplete2
return
*OnBeforeNavigate
comevarg name,ie_event,1
objprm 0,name
return
*ref
ie->"Refresh"
goto *main
*OnNavigateComplete2
pDoc = ie("Document")
name = pDoc("Title")
title name
delcom pDoc
return
*wow
ie->"Navigate" url
goto *main
*go_f
ie->"GoForward"
goto *main
*go_b
ie->"GoBack"
goto *main
*pfav
wait 10
goto *main ;長いので省略
*hob
wait 10
goto *main ;長いので省略
*exit
end
*pushkey
if varuse(ieOIPAO) {
getkey k, 17
if wparam = 'N' : k = 0
if wparam = 'O' : k = 0
if wparam = 'S' : k = 0
if (wparam == 9) | (wparam == 27) | (wparam == 46) | (wparam == 116) | k {
b = 0, $100, wparam, lparam, 0, 0, 0
OIPAO_TranslateAccelerator ieOIPAO, b
}
}
return
;以下"機能"のスクリプト
//a = 1
*pag
objprm cd_id1, 1
end
//a = 2
*feed
objprm cd_id1, 1
fed = "https://docs.google.com/forms/d/1Zm-yu4N-jfm87hhEpCGRCXu6-6c3lXF6OEGVNhXBQbc/viewform"
ie->"Navigate" fed
goto *hometq
こんな感じです。お願いします。