<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          RobotJSGUI 自動(dòng)化工具

          聯(lián)合創(chuàng)作 · 2023-09-23 16:48

          RobotJS 是一個(gè) Node.js 的 GUI 自動(dòng)化工具,可用來(lái)控制鼠標(biāo)、鍵盤和讀取屏幕。

          目前自在 Mac + Node.js 0.10.31 下測(cè)試通過(guò)。

          示例代碼:

          var robot = require("robotjs");
          
          //Get the mouse position, retuns an object with x and y. 
          var mouse=robot.getMousePos();
          console.log("Mouse is at x:" + mouse.x + " y:" + mouse.y);
          
          //Move the mouse down by 100 pixels.
          robot.moveMouse(mouse.x,mouse.y+100);
          
          //Left click!
          robot.mouseClick();
          瀏覽 22
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  久久国产主播 | 久久精品波多野结衣 | 看操逼网站 | 囯产精品久久久久久久久久98 | 国产精品欧美久久久久久久久久久久 |