

  Sleipnir API t@X

  Copyright (C) 2002-2004 by Yasuyuki Kashgiwagi.
  Copyright (C) 2005 by Fenrir & Co.
  All Rights Reserved.



Sleipnir ̃XNvg Windows Scripting Host (WSH) 𗘗pē삵܂B
<SleipnirFolder>\scripts\ ȉ̃XNvgǂݍ݂܂B

$ Ŏn܂閼ÕtH_ȉ̃XNvg͓ǂݍ݂܂B
Ɨp̃XNvgAEgvbgp̃CxgXNvgۑ̂ɂp
B

XNvggpɂ́uSleipnir IvVbXNvgɂNCAg
ṽ`FbNLɂĂB̃IvV̓ftHgł
ɂȂĂ܂B

ꕔASleipnir 1.66 ƈقȂ镔܂BAbvf[gŋĂ܂B



 vpeB


(R) c ǂݎpłBl̐ݒ͂ł܂B

[string] AddressBarString AhXo[̕擾/ݒ肷B
[string] SearchBarString  o[̕擾/ݒ肷B
[string] URL              ANeBuȃhLg URL 擾/ݒ肷B
[long]   ActiveIndex      ANeBuȃhLg̃^uʒu擾/ݒ肷B
[string] FavoriteFile     Cɓt@C擾/ݒ肷B
[string] AppPath(R)       Sleipnir.exe ݂̑fBNgԂB
[string] ScriptPath(R)    XNvg̓ǂݍ܂fBNgԂB
[string] ResourcePath(R)  \[X̓ǂݍ܂fBNgԂB
[string] UserPath(R)      eݒ̕ۑfBNgԂB
[string] UserAgent        UserAgent 擾/ݒ肷B
[long]   Handle(R)        Sleipnir ̃EBhEnhԂB
[long]   Result           Sleipni API ̌ʂԂB
[long]   Version(R)       Sleipnir ̃o[WԂB

// 1.30 ȍ~

[bool]   ShiftDown(R)     Shift L[̏ԂԂB
[bool]   CtrlDown(R)      Ctrl L[̏ԂԂB
[bool]   AltDown(R)       Alt L[̏ԂԂB
[bool]   OutputVisible    AEgvbgo[̉Ԃ擾/ݒ肷B
[long]   OutputCurSel     AEgvbgo[̑Is擾/ݒ肷B
[string] OutputScript     AEgvbgŃ_uNbNꂽɌĂ΂XN
                          vgt@C擾/ݒ肷B̃XNvg͈Ƃ
                           /output:Is nB



 \bh



[long] GetCount


[]
@JĂhLg̐ԂB

[]
@Ȃ

[߂l]
@JĂhLg̐



[long] GetDocumentID(long index)


[]
@hLgŗL ID 擾B

[]
@index: ^uʒu( 0 ` GetCount-1 )

[߂l]
@hLgŗL ID



[IDispatch] GetWindowObject(long id)


[]
@Window Object 擾B

[]
@id: hLgŗL ID

[߂l]
@Windows Object  IDispatch



[IDispatch] GetDocumentObject(long id)


[]
@HTML Document Object 擾B

[]
@id: hLgŗL ID

[߂l]
@Document Object  IDispatch



[IDispatch] GetWebBrowserObject(long id)


[]
@WebBrowser Object 擾B

[]
@id: hLgŗL ID

[߂l]
@WebBrowser Object  IDispatch



[long] NewWindow(string strUrl, bool bActive)


[]
@VhLgJB

[]
@strUrl:  VJhLg Url
@bActive: VJEBhEANeBuɂ邩

[߂l]
@JꂽhLgŗL ID



[void] Close(long id)


[]
@w̃hLgB

[]
@id: hLgŗL ID

[߂l]
@Ȃ



[void] Navigate(long id, string strUrl)


[]
@݂̃hLgŔCӂ URL ɃANZXB

[]
@id:     hLgŗL ID
@strUrl: irQ[g Url

[߂l]
@Ȃ



[long] GetIndex(long id)


[]
@hLgŗL ID ^uʒu擾B

[]
@id: hLgŗL ID

[߂l]
@^uʒu



[void] MessageBox(string strMessage)


[]
@Sleipnir ̃bZ[W{bNX\B

[]
@strMessgae: \郁bZ[W

[߂l]
@Ȃ



[void] Beep(void)


[]
@Beep 炷B

[߂l]
@Ȃ



[BOOL] IsBusy(long id)


[]
@hLgǂݍݒfB

[]
@id: hLgŗL ID

[߂l]
@ǂݍݒ̏ꍇ true



[void] SetSecurity(long id, BOOL bJavaScript, BOOL bJava, BOOL bRunActiveX,
                   BOOL bDownloadActiveX, BOOL bPicture, BOOL bSound, 
                   BOOL bVideo)


[]
@hLg̃ZLeBݒ肷B

[]
@id:   hLgŗL ID
@el: eZLeB



[BOOL] IsJavaScriptEnabled(long id)
[BOOL] IsJavaEnabled(long id)
[BOOL] IsRunActiveXEnabled(long id)
[BOOL] IsDownloadActiveXEnabled(long id)
[BOOL] IsPictureEnabled(long id)
[BOOL] IsSoundEnabled(long id)
[BOOL] IsVideoEnabled(long id)


[]
@hLg̃ZLeB擾B

[]
@id: hLgŗL ID

[߂l]
@LȂ true



[BOOL] IsNavigateLock(long id)


[]
@irQ[gbNL擾B

[]
@id: hLgŗL ID

[߂l]
@LȂ true



[void] SetNavigateLock(long id, BOOL bEnable)


[]
@irQ[gbNLEɂB

[]
@id:     hLgŗL ID
@bEnable: LɂȂ true

[߂l]
@Ȃ



[BOOL] SaveFavorite(string strFileName)


Sleipnir 2.00 ł͑ΉĂ܂B

[]
@CɓۑB

[]
@strFileName: ۑt@CitpXŎwj

[߂l]
@Ȃ true



[void] SaveClosedURL()


Sleipnir 2.00 ł͑ΉĂ܂B

[]
@ŋߕy[Wt@Cɏ㏑ۑB

[]
@Ȃ

[߂l]
@Ȃ



[BOOL] Search(long id, string strKeyword)


Sleipnir 2.00 ł͑ΉĂ܂B

[]
@y[WsB

[]
@strKeyword: L[[h

[߂l]
@L[[hłȂA܂͐擪̃L[[hɖ߂Ă false



[void] Hilight(long id, string strKeyword)


Sleipnir 2.00 ł͑ΉĂ܂B

[]
@nCCgsB

[]
@strKeyword: L[[h

[߂l]
@Ȃ



[void] WriteProfileInt(string strSection, string strKey, long nData)


[]
@<ini_dir>\script.ini  long ^f[^ށB

[]
@strSection: ZNV
@strKey:     L[
@nData:      f[^

[߂l]
@Ȃ



[void] WriteProfileString(string strSection, string strKey, string strData)


[]
@<ini_dir>\script.ini  string ^f[^ށB

[]
@strSection: ZNV
@strKey:     L[
@strData:    f[^

[߂l]
@Ȃ



[long] GetProfileInt(string strSection, string strKey, long nDefault)


[]
@<ini_dir>\script.ini  long ^f[^ǂݍށB

[]
@strSection: ZNV
@strKey:     L[
@nDefault:   L[݂ȂƂɕԂl

[߂l]
@f[^



[string] GetProfileString(string strSection, string strKey, string strDefault)


[]
@<ini_dir>\script.ini  string ^f[^ǂݍށB

[]
@strSection: ZNV
@strKey:     L[
@strDefault: L[݂ȂƂɕԂl

[߂l]
@f[^



[void] WriteProfileIntCipher(string strSection, string strKey, long nData)


[]
@<ini_dir>\script.ini  long ^f[^ÍďށB

[]
@strSection: ZNV
@strKey:     L[
@nData:      f[^

[߂l]
@Ȃ



[void] WriteProfileStringCipher(string strSection, string strKey,
                                string strData)


[]
@<ini_dir>\script.ini  string ^f[^ÍďށB

[]
@strSection: ZNV
@strKey:     L[
@strData:    f[^

[߂l]
@Ȃ



[long] GetProfileIntCipher(string strSection, string strKey, long nDefault)


[]
@<ini_dir>\script.ini Íꂽ long ^f[^ǂݍށB

[]
@strSection: ZNV
@strKey:     L[
@nDefault:   L[݂ȂƂɕԂl

[߂l]
@f[^



[string] GetProfileStringCipher(string strSection, string strKey,
                                string strDefault)


[]
@<ini_dir>\script.ini Íꂽ string ^f[^ǂݍށB

[]
@strSection: ZNV
@strKey:     L[
@strDefault: L[݂ȂƂɕԂl

[߂l]
@f[^



[BOOL] IsRead(long id)


Sleipnir 2.00 ł͑ΉĂ܂B

[]
@hLgǂfB

[]
@id: hLgŗL ID

[߂l]
@ǂ̏ꍇ true



[string] InputBox(string strPrompt, string strDefault)


[]
@͂_CAO\B

[]
@strPrompt:  vvg
@strDefault: ftHg̕

[߂l]
@OK ̏ꍇ͕ҏWꂽACancel ̏ꍇ strDefault
@Result vpeB 1iOKjA0iCanceljݒ肳B



[void] SetAutoRefresh(long id, long nTime)


[]
@XV̎Ԃݒ肷B

[]
@id:    hLgŗL ID
@nTime: XVԁi0 ` 1000 bj

[߂l]
@Ȃ



[long] GetAutoRefresh(long id)


[]
@XV̎Ԃ擾B

[]
@id: hLgŗL ID

[߂l]
@XV̎ԁiP = bj



[long] OutputGetCount()


[]
@AEgvbgɏo͂Ă镶̍s擾B

[]
@Ȃ

[߂l]
@s



[void] OutputAddString(string str)


[]
@AEgvbgɕǉB

[]
@str: o͂镶

[߂l]
@Ȃ



[void] OutputInsertString(long n, string str)


[]
@AEgvbgɕ}B

[]
@n:   }ʒu
@str: o͂镶

[߂l]
@Ȃ



[void] OutputClear()


[]
@AEgvbgNAB

[]
@Ȃ

[߂l]
@Ȃ



[string] OutputGetString(long n)


[]
@AEgvbg當擾B

[]
@n: 擾s

[߂l]
@



[void] OutputDeleteString(long n)


[]
@AEgvbg當폜B

[]
@n: 폜s

[߂l]
@Ȃ



string MaskedInputBox(string strPrompt, string strDefault)


[]
@}XNŕی삳ꂽ͂_CAO\B

[]
@strPrompt:  vvg
@strDefault: ftHg̕

[߂l]
@OK ̏ꍇ͕ҏWꂽACancel ̏ꍇ strDefault
@Result vpeB 1iOKjA0iCanceljݒ肳B



[long] GetProfileIntEx(string strSection, string strKey, long nDefault,
                       string strFileName)


[]
@strFileName Ŏw肳 INI t@C long ^f[^ǂݍށB

[]
@strSection:  ZNV
@strKey:      L[
@nDefault:    L[݂ȂƂɕԂl
@strFileName: ݒǂݍރt@C

[߂l]
@f[^



[string] GetProfileStringEx(string strSection, string strKey, 
                            string strDefault, string strFileName)


[]
@strFileName Ŏw肳 INI t@C string ^f[^ǂݍށBꕔ̃t
@@Cł "" ň͂܂ꂽ񂪕Ԃ邱Ƃ܂B

[]
@strSection:  ZNV
@strKey:      L[
@strDefault:  L[݂ȂƂɕԂl
@strFileName: ݒǂݍރt@C

[߂l]
@f[^


[void] DeleteProfileKey(string strSection, string strKey)


[]
@<ini_dir>\script.ini Cӂ̃L[폜B

[]
@strSection: ZNV
@strKey:     L[

[߂l]
@Ȃ



[long] MsgBox(string strPrompt, string strTitle, long lFlag)


[]
@WinAPI::MessageBox ĂяoB

[]
@strPrompt: bZ[W{bNXɕ\镶
@strTitle:  bZ[W{bNX̃^Cg
@lFlag:     WinAPI::MessageBox ̒lƓ

[߂l]
@WinAPI::MessageBox ̖߂lƓ



[void] ReloadClosedURL()


Sleipnir 2.00 ł͑ΉĂ܂B

[]
@ClosedURL.ini ēxǂݍށB

[]
@Ȃ

[߂l]
@Ȃ



[void] AddSearchBarHistory(string ss)


Sleipnir 2.00 ł͑ΉĂ܂B

[]
@o[̗ɍڂǉB񂪂łɑ݂ꍇ͐擪Ɉړ܂B

[]
@ss: ǉ镶

[߂l]
@Ȃ



[void] ExecCommand(long cmdID)


Sleipnir 2.00 ł͑ΉĂ܂B

[]
@Sleipnir ̔Cӂ̃j[ cmdID Ŏw肵Ďs܂BcmdID ̓}EXWFX
@`[(Gesture.ini)QƂĂB

[]
@cmdID: R}hID

[߂l]
@Ȃ



