スマホ自動操作スクリプト公開関連ソフト作成情報発信

2017/07/11(火)22:59

ドラッグ等スワイプ系について

備忘録(14)

iPhoneの場合function Tap_Mae(self , con) if self.Tag[con] == "B0085" then --スワイプ ドラッグ系 local stepCount = 5 local whs = XYren(500,600) -- 始点座標 local whe = XYren(300,1100) -- 終点座標 local wwc = (whe[1] - whs[1]) / stepCount local hhc = (whe[2] - whs[2]) / stepCount touchDown(0 , whs[1] , whs[2]) usleep(30000) for cot = 1 , stepCount do touchMove(0,whs[1] + (wwc * cot) , whs[2] + (hhc * cot)) usleep(50000) end usleep(500000) -- これを消すとフリックに近い touchUp(0 , whe[1] , whe[2]) usleep(500000) endendAndroidの場合function Tap_Mae(self , con) if self.Tag[con] == "B0085" then --スワイプ ドラッグ系 swipe(Location(500,600),Location(300,1100)) endendAndroidはすでに関数があるので簡単ですが、いつものように遅いです・・・ なお、動作確認してませんので、ご注意ください。

続きを読む

総合記事ランキング

もっと見る