カテゴリ:備忘録
iPhoneの場合 function Tap_Mae(self , con)if self.Tag[con] == "B0085" then --スワイプ ドラッグ系local stepCount = 5local whs = XYren(500,600) -- 始点座標local whe = XYren(300,1100) -- 終点座標local wwc = (whe[1] - whs[1]) / stepCountlocal hhc = (whe[2] - whs[2]) / stepCounttouchDown(0 , whs[1] , whs[2])usleep(30000)for cot = 1 , stepCount dotouchMove(0,whs[1] + (wwc * cot) , whs[2] + (hhc * cot))usleep(50000)endusleep(500000) -- これを消すとフリックに近いtouchUp(0 , whe[1] , whe[2])usleep(500000)endend Androidの場合 Androidはすでに関数があるので簡単ですが、いつものように遅いです・・・function Tap_Mae(self , con)if self.Tag[con] == "B0085" then --スワイプ ドラッグ系swipe(Location(500,600),Location(300,1100))endend なお、動作確認してませんので、ご注意ください。 お気に入りの記事を「いいね!」で応援しよう
Last updated
Jul 11, 2017 10:59:26 PM
コメント(0) | コメントを書く
[備忘録] カテゴリの最新記事
|
|