zoukankan      html  css  js  c++  java
  • 获得NOTEPAD++ Download Manager的所有下载列表的内容的au3脚本

    ;~ 获得NOTEPAD++ Download Manager的所有下载列表的内容的au3脚本
    ;~ 作者: 鹏程万里
    ;~ Email:aprial@163.com
    ;~ 创建日期: 2014年11月9日 23:02:50

    #include <GuiListView.au3>
    #include "E:1.prjsettingautoitUserIncludedbg.au3"
    $hwnd = WinWait("Plugin Manager", "Settings", 3)
    if $hwnd = null Then
        MsgBox(1, '', "Invalid hwnd")
        Exit
    EndIf

    WinActivate($hwnd)

    $hwnd_control = ControlGetHandle ($hwnd, "", "[CLASS:SysListView32; INSTANCE:1]")
    $hwnd_edit_control = ControlGetHandle ($hwnd, "", "[CLASS:Edit; INSTANCE:1]")
    d($hwnd)
    d($hwnd_control)
    d($hwnd_edit_control)
    $nColumnCount = _GUICtrlListView_GetColumnCount($hwnd_control)
    $itemCount = _GUICtrlListView_GetItemCount($hwnd_control)

    d($nColumnCount)
    d($itemCount)
    $s = '<table>' & @CRLF
    $d = ''
    ControlClick($hwnd, '', $hwnd_control)
    Sleep(200)
    Send("^{HOME}")
    Sleep(200)
    Send("{SPACE}")
    Sleep(200)

    for $row = 0 to $itemCount
        $s = $s & "<tr>" & @CRLF
        for $col = 0 to $nColumnCount
            $s = $s & "<td>" & _GUICtrlListView_GetItemText($hwnd_control, $row, $col) & "</td>"
        next
        $s = $s & "<td>" & ControlGetText($hwnd, '', $hwnd_edit_control) & "</td>"
        $s = $s & "</tr>" & @CRLF
        Send("{DOWN}")
    next
    $s = $s & @CRLF '</table>' & @CRLF

    d($s)
    ;~ fs("e:a.html", $s)

  • 相关阅读:
    input输入框的各种样式
    Spring JdbcTemplate方法详解
    TF/IDF计算方法
    分布式日志收集系统--Chukwa
    分布式日志系统
    Iframe知识点
    拖拽事件
    面向对象知识点
    JS使用合并数组
    块元素block,内联元素inline; inline-block;
  • 原文地址:https://www.cnblogs.com/zhang-pengcheng/p/4086134.html
Copyright © 2011-2022 走看看