看板 EzHotKey 關於我們 聯絡資訊
把功能切開來寫成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