1.0.0 • Published 7 months ago

rubick-api-types v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

rubick API 代码提示

第一步

npm install rubick-api-types --save-dev

第二步 配置 tsconfig.json

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

API 代码示例

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

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

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

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

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

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

7 months ago