ȥå   Խ ʬ Хåå ź ʣ ̾ѹ   ñ측 ǽ   إ   ǽRSS

ե/UWSC

Last-modified: 2011-07-28 () 20:17:02 (2246d)
Top / ե / UWSC

[ե]

UWSCȤWindows򥹥ץȵҤǹԤġǤϿ褷ơϿ줿ץȤƥȥǥԽ뤳ȤǽǤ
ġ̤򾯤ʤɥѤäꤷƤư褦ˤ뤿ᡢʤ٤٥APIѤƥץȤ򵭽Ҥޤ

٥APIʥޥľ

KBD(KEY[, CLICKʥǥեȡ/DOWN/UP, ¹ԤޤǤԤ(ms)] )

򲡤ޤ

MMV(x, y, [¹ԤޤǤԤ(ms)])

ޥưޤ

BTN(LEFT/RIGHT/MIDDLE/WHEEL, CLICK/DOWN/UP/WHEELϥΥå, [¹԰x, ¹԰y, ¹ԤޤǤԤ(ms)] )

ޥܥޤ

٥APIʥɥʸäꡢܥ򥯥å

window_id = GETID(ȥʸ, [饹̾])

ꥦɥID֤ͤޤ
ʲ̤ʥɥǤ

GETID(GET_ACTIVE_WIN) // ƥ֥ɥ֤ޤ
GETID(GET_FROMPOINT_WIN) // ޥ벼Υɥ
GETID(GET_FROMPOINT_OBJ) // ޥ벼Υ֥
GETID(GET_THISUWSC_WIN) // UWSC
GETID(GET_LOGPRINT_WIN) // ɽѥɥ
GETID(GET_FUKIDASI_WIN) // դѥɥ
GETID(GET_FORM_WIN) // ե̥ɥ

= STATUS(window_id, STATUS)

ɥγƼ֤

STATUS
ST_TITLEȥ֤
ST_CLASS饹֤̾
ST_XXɸ֤
ST_YYɸ֤
ST_WIDTH֤
ST_HEIGHT⤵֤
ST_CLX饤ΰXɸ֤
ST_CLY饤ΰYɸ֤
ST_CLWIDTH饤ΰ֤
ST_CLHEIGHT饤ΰι⤵֤
ST_PARENTƥɥID֤Ƥ̵-1
ST_ICON֤ǤTRUEǤʤFALSE
ST_VISIBLE̾ɽ֤ǤTRUEǤʤFALSE
ST_ACTIVEƥ־֤ǤTRUEǤʤFALSE
ST_BUSYӥ֤ǤTRUEǤʤFALSE
ST_PATHEXEΥѥ֤ 64bitץNG
ST_PROCESSץID֤
ST_WIN6464bitץǤTRUEǤʤFALSE

CTRLWIN(window_id, ̿)

ɥ椷ޤ

̿
CLOSEλ
CLOSE2λQUIT
ACTIVATEƥ
HIDEɽ
SHOWɽ
MIN
MAX
NORMAL
TOPMOST̤˸
NOTOPMOST̸

ACW(window_id, x, y[, w, h, ms])

ɥ֤礭ѹ

SCKEY(window_id, [, , , , ...])

ɥǥ򲡤ޤ

  • VK_SHIFT, VK_CTRL, VK_ALT, VK_WIN Υϲ֤Ȥƽޤ
  • ꤹ륦ɥʤˤID0ꤷޤ

= CLKITEM(window_id, ƥ̾[, ƥ, On/Off, ֹ(1)])

ȥ򥯥åޤꤷϥƥ̤ɲäޤƥ̾ˤϼϤޤ

ƥ̾ƥ̾ƥॢƥ
ܥ󡢥åܥå饸ܥץʸCLK_BTN
ꥹȥܥåܥܥå̾CLK_LIST
֥ȥ̾CLK_TAB
˥塼˥塼̾CLK_MENU
ĥ꡼ӥ塼̾CLK_TREEVEW
ꥹȥӥ塼̾CLK_LSTVEW
ġСܥ̾CLK_TOOLBAR

TRUE֤ޤ

  • ꥹȥܥåʣξ ֤ˤ ƥ̾Ҥ
  • ƥ̾κǸդ ˡ˥å[(&A)(&B)...(&C):]פޤ
  • ˥塼,ĥ꡼ӥ塼 \ ˤƥѥɽġ㡧TOP\TEMP\FILE ˤ֤ĤʪʤХѥ
  • Ʊ̾ΥƥबֹǶ̤Ǥޤ

= CHKBTN(window_id, ƥ̾[, ֹ(1)])

ܥʥåܥå饸ܥˤξ֤֤ޤ

-1¸ߤʤ̵
0OFF
1ON
2åܥåˤø

SENDSTR(window_id, ʸ[, ֹ(1), ⡼ɥե饰])

ɥΥեäƤ륳ȥʸޤ

  • ɥIDΤȤϥåץܡɤʸꤷޤ
  • ֹ(1)ꤹȡ夫ȥʸޤʥǥեȤֹ棰ǡեäƤ륳ȥʸޤ
  • ⡼TRUE: ʸɲáʥǥեȡ ⡼FALSE: ʸ֤

ʸ = GETSTR(window_id[, ֹ, GETSTR])

ɥΥեäƤ륳ȥ뤫ʸޤ

  • ɥIDΤȤϥåץܡʸޤ
  • ֹ(1)ꤹȡ夫ȥʸޤʥǥեȤֹ棰ǡեäƤ륳ȥʸޤ
  • GETSTR̤ϼͤꤷޤ
    GETSTR
    STR_EDITǥȥȥʥǥեȡ
    STR_STATICƥȥ
    STR_STATUSơС

٥APIInternet ExplorerExcelʤɡ

Internet Explorer

ie = CREATEOLEOBJ("InternetExplorer.Application")
ie.visible = TRUE
ie.navigate("http://www.yahoo.co.jp")
ie.document.forms[1].name_text.value = "abc"
IF !ie.document.forms[1].name_foo.checked() THEN ie.document.forms[1].name_foo.click()

ƤInternet ExplorerȤie = GETACTIVEOLEOBJ("InternetExplorer.Application", "ɥȥ")

Excel

excel = CREATEOLEOBJ("EXCEL.Application")
excel.visible = TRUE
excel.workbooks.add()
excel.range("A1").select
excel.range("A1:B2").select
excel.rows("1").select
excel.rows("1:2").select
excel.columns("A").select
excel.columns("A:B").select
excel.range("A1").value = 99
excel.selection.value = 99
excel.range("A1").copy
excel.range("A1").cut
excel.Activesheet.paste

ƤExcelȤexcel = GETACTIVEOLEOBJ("EXCEL.Application", "ɥȥ")