a xem giup e
user_8567946
abc
2 years ago
3.1 kB
4
Indexable
require("ATT-Func") ---------moSMS------------------ function startImess() appRun('com.apple.MobileSMS'); usleep(2000000); end ---------------------------------------- -------themSMS--------------- function themSMS() tap(1149, 127); usleep(2000000); end --------------------------------------- ---------themSDT---------------------------------- function themSDT() local SDT = readFile("/private/var/mobile/Library/AutoTouch/Scripts/TEST LUA/SDT.txt") --alert(SDT[2]) local SDT1 = copyText(SDT[2]) inputText(clipText()); ----- ------------ -- toast("THEM SDT "); -- math.randomseed(os.time()); -- local SDT = readFile("/private/var/mobile/Library/AutoTouch/Scripts/TEST LUA/SDT.txt") -- -- local SDT1 = SDT[math.random(1,tablelength(SDT))]; -- -- SDT=nil; -- inputText(SDT1); ------------- -----------VD----- --local SDT = readFile("/private/var/mobile/Library/AutoTouch/Scripts/TEST LUA/SDT.txt") --for i = 1,#SDT,1 do -- inputText(SDT[i]); --------------- --end end -------------------------------------- --------click vao Go SMS---------------------------------------------------- function clickVaoGoSms() touchDown(1, 505.47, 1306.15); usleep(67771.62); touchUp(1, 505.47, 1306.15); end --------------------------------------------------------------- ----------CheckSDTcoImess-------------------------- function checkSDTcoImess() local looptime = 5 --repeat toast(" "..looptime); sleep(2000); if waitImage(currentPath().."/images/imessage.PNG",2) ~= false then toast("Co imess nha",5); local CMT = readFile("/private/var/mobile/Library/AutoTouch/Scripts/TEST LUA/COMMENT.txt") --alert(SDT[2]) local coppyCMT = copyText(CMT[1]); --click dup vao sms touchDown(1, 588.59, 1310.97); usleep(67350.21); touchUp(1, 588.59, 1310.97); usleep(99553.62); touchDown(1, 572.16, 1310.02); usleep(48458.67); touchUp(1, 572.16, 1310.02); usleep(1268300.75); --click vao dan touchDown(2, 432.02, 1199.92); usleep(65869.58); touchUp(2, 432.02, 1199.92); usleep(2599493.38); --click vao gui touchDown(3, 1154.98, 1324.48); usleep(34456.71); touchUp(3, 1154.98, 1324.48); usleep(3000000) --click tro ve touchDown(3, 88.90, 143.53); usleep(115065.92); touchUp(3, 88.90, 143.53); local SDT11 = "1" writeFile("/private/var/mobile/Library/AutoTouch/Scripts/TEST LUA/CoImess.txt",SDT11,"a") return true end if waitImage(currentPath().."/images/TinNhanVB.PNG",2) ~= false then toast("khong co imess",5); tap(1112, 221); writeFile("/private/var/mobile/Library/AutoTouch/Scripts/TEST LUA/KoCoImess.txt",SDT11,"a") return false end --until 1==2 sleep(2000); end ---------------------------------------------------------------------- startImess(); themSMS(); themSDT(); clickVaoGoSms(); checkSDTcoImess();
Editor is loading...