[其他] Sikuli模組化 批次 使用

看板EzHotKey作者 (唐朝美男子)時間5年前 (2018/11/15 12:13), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
把功能切開來寫成Function 再開一個新檔案排程來跑 實做就是把每個寫好能用的程式前面加上: from sikuli import * def 函式名稱(): ex. from sikuli import * def test1(): popup("test1") ======================= from sikuli import * def test2(): popup("test2") 以上分別建立兩個檔案 再開一個新檔案呼叫函式執行 import test1 test1.test1() import test2 test2.test2() import test1 test1.test1() 存檔執行就會先跑第一個檔案再跑第二個再跑第一個 -- ┌──┐ ┌──┐ │ 我 │ │ 們 │ ┌──┐┌──┐ └──┘ └──┘ │ 要!││ │ ╲● ●╱ └──┘└──┘ ■╮ √■ ●╱ ╲● █████沒圖沒真相委員會█████ -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.35.0.41 ※ 文章網址: https://www.ptt.cc/bbs/EzHotKey/M.1542255191.A.DD6.html
文章代碼(AID): #1RxF9NtM (EzHotKey)