utools-api-types
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

uTools API 代码提示

第一步

npm install utools-api-types --save-dev

第二步 配置 tsconfig.json

{
  "compilerOptions": {
    "types": [
      "utools-api-types"
    ]
  }
}

API 代码示例

// 默认浏览器打开网页
window.utools.shellOpenExternal('https://u.tools')

// 在资源管理器中显示文件
window.utools.shellShowItemInFolder('d:\\test')

// ubrowser 网页自动化
window.utools.ubrowser.goto('https://cn.bing.com')
  .value('#sb_form_q', 'uTools')
  .click('#sb_form_go')
  .run({ width: 1000, height: 600 })

// 值键对方式存储数据
window.utools.dbStorage.setItem('key', 'value')

// 执行截图
window.utools.screenCapture((imagebase64) => {
  // 截图完的回调
})

// 执行取色
window.utools.screenColorPick(({ hex, rgb }) => {
  // 取色完的回调
})

Readme

Keywords

Package Sidebar

Install

npm i utools-api-types

Weekly Downloads

41

Version

5.0.0

License

MIT

Unpacked Size

23.9 kB

Total Files

5

Last publish

Collaborators

  • utools-labs