Post by ditmaimey on Feb 4, 2017 17:53:28 GMT
Hi guys, i modified an existing script to make a schedule of 30 clicks. My objective was to spam these 30 clicks the fastest way possible, 1 by 1. So i did this :
setImmersiveMode(true)
clicks = {}
dialogInit()
list = {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30",}
addSpinnerIndex("clicknum", list, "1")
dialogShow("How many click location?")
dialogInit()
for i = 1, clicknum do
addTextView("Click#"..i.." ")
addTextView("X:")
addEditNumber("xcord"..i,0)
addTextView("Y:")
addEditNumber("ycord"..i,0)
addTextView("Wait:")
addEditNumber("wait"..i,1)
addCheckBox("continuous"..i,"Continuous?",false)
newRow()
end
dialogShow("Click settings")
if(1 <= clicknum) then
clicks[1] = {location = Location(xcord1, ycord1), wait=wait1, rpt=continuous1}
end
if(2 <= clicknum) then
clicks[2] = {location = Location(xcord2, ycord2), wait=wait2, rpt=continuous2}
end
if(3 <= clicknum) then
clicks[3] = {location = Location(xcord3, ycord3), wait=wait3, rpt=continuous3}
end
if(4 <= clicknum) then
clicks[4] = {location = Location(xcord4, ycord4), wait=wait4, rpt=continuous4}
end
if(5 <= clicknum) then
clicks[5] = {location = Location(xcord5, ycord5), wait=wait5, rpt=continuous5}
end
if(6 <= clicknum) then
clicks[6] = {location = Location(xcord6, ycord6), wait=wait6, rpt=continuous6}
end
if(7 <= clicknum) then
clicks[7] = {location = Location(xcord7, ycord7), wait=wait7, rpt=continuous7}
end
if(8 <= clicknum) then
clicks[8] = {location = Location(xcord8, ycord8), wait=wait8, rpt=continuous8}
end
if(9 <= clicknum) then
clicks[9] = {location = Location(xcord9, ycord9), wait=wait9, rpt=continuous9}
end
if(10 <= clicknum) then
clicks[10] = {location = Location(xcord10, ycord10), wait=wait10, rpt=continuous10}
end
if(11 <= clicknum) then
clicks[11] = {location = Location(xcord11, ycord11), wait=wait11, rpt=continuous11}
end
if(12 <= clicknum) then
clicks[12] = {location = Location(xcord12, ycord12), wait=wait12, rpt=continuous12}
end
if(13 <= clicknum) then
clicks[13] = {location = Location(xcord13, ycord13), wait=wait13, rpt=continuous13}
end
if(14 <= clicknum) then
clicks[14] = {location = Location(xcord14, ycord14), wait=wait14, rpt=continuous14}
end
if(15 <= clicknum) then
clicks[15] = {location = Location(xcord15, ycord15), wait=wait15, rpt=continuous15}
end
if(16 <= clicknum) then
clicks[16] = {location = Location(xcord16, ycord16), wait=wait16, rpt=continuous16}
end
if(17 <= clicknum) then
clicks[17] = {location = Location(xcord17, ycord17), wait=wait17, rpt=continuous17}
end
if(18 <= clicknum) then
clicks[18] = {location = Location(xcord18, ycord18), wait=wait18, rpt=continuous18}
end
if(19 <= clicknum) then
clicks[19] = {location = Location(xcord19, ycord19), wait=wait19, rpt=continuous19}
end
if(20 <= clicknum) then
clicks[20] = {location = Location(xcord20, ycord20), wait=wait20, rpt=continuous20}
end
if(21 <= clicknum) then
clicks[21] = {location = Location(xcord21, ycord21), wait=wait21, rpt=continuous21}
end
if(22 <= clicknum) then
clicks[22] = {location = Location(xcord22, ycord22), wait=wait22, rpt=continuous22}
end
if(23 <= clicknum) then
clicks[23] = {location = Location(xcord23, ycord23), wait=wait23, rpt=continuous23}
end
if(24 <= clicknum) then
clicks[24] = {location = Location(xcord24, ycord24), wait=wait24, rpt=continuous24}
end
if(25 <= clicknum) then
clicks[25] = {location = Location(xcord25, ycord25), wait=wait25, rpt=continuous25}
end
if(26 <= clicknum) then
clicks[26] = {location = Location(xcord26, ycord26), wait=wait26, rpt=continuous26}
end
if(27 <= clicknum) then
clicks[27] = {location = Location(xcord27, ycord27), wait=wait27, rpt=continuous27}
end
if(28 <= clicknum) then
clicks[28] = {location = Location(xcord28, ycord28), wait=wait28, rpt=continuous28}
end
if(29 <= clicknum) then
clicks[29] = {location = Location(xcord29, ycord29), wait=wait29, rpt=continuous29}
end
if(30 <= clicknum) then
clicks[30] = {location = Location(xcord30, ycord30), wait=wait30, rpt=continuous30}
end
while true do
for i=1,#clicks do
print("Click "..i.." ".."of "..#clicks)
if(clicks.rpt) then
print("Continuous click at:")
print(clicks.location)
continueClick(clicks.location,100)
else
print("Single clicked at:")
print(clicks.location)
click(clicks.location)
end
wait(clicks.wait)
end
end
But when in parameter i put 0 delay between each an " continuous " option, my phone tap about 100 times the first location, then 100 times the second, etc.
I just would like it to tap 1 time each location but i don't find where to change that. Help me please
setImmersiveMode(true)
clicks = {}
dialogInit()
list = {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30",}
addSpinnerIndex("clicknum", list, "1")
dialogShow("How many click location?")
dialogInit()
for i = 1, clicknum do
addTextView("Click#"..i.." ")
addTextView("X:")
addEditNumber("xcord"..i,0)
addTextView("Y:")
addEditNumber("ycord"..i,0)
addTextView("Wait:")
addEditNumber("wait"..i,1)
addCheckBox("continuous"..i,"Continuous?",false)
newRow()
end
dialogShow("Click settings")
if(1 <= clicknum) then
clicks[1] = {location = Location(xcord1, ycord1), wait=wait1, rpt=continuous1}
end
if(2 <= clicknum) then
clicks[2] = {location = Location(xcord2, ycord2), wait=wait2, rpt=continuous2}
end
if(3 <= clicknum) then
clicks[3] = {location = Location(xcord3, ycord3), wait=wait3, rpt=continuous3}
end
if(4 <= clicknum) then
clicks[4] = {location = Location(xcord4, ycord4), wait=wait4, rpt=continuous4}
end
if(5 <= clicknum) then
clicks[5] = {location = Location(xcord5, ycord5), wait=wait5, rpt=continuous5}
end
if(6 <= clicknum) then
clicks[6] = {location = Location(xcord6, ycord6), wait=wait6, rpt=continuous6}
end
if(7 <= clicknum) then
clicks[7] = {location = Location(xcord7, ycord7), wait=wait7, rpt=continuous7}
end
if(8 <= clicknum) then
clicks[8] = {location = Location(xcord8, ycord8), wait=wait8, rpt=continuous8}
end
if(9 <= clicknum) then
clicks[9] = {location = Location(xcord9, ycord9), wait=wait9, rpt=continuous9}
end
if(10 <= clicknum) then
clicks[10] = {location = Location(xcord10, ycord10), wait=wait10, rpt=continuous10}
end
if(11 <= clicknum) then
clicks[11] = {location = Location(xcord11, ycord11), wait=wait11, rpt=continuous11}
end
if(12 <= clicknum) then
clicks[12] = {location = Location(xcord12, ycord12), wait=wait12, rpt=continuous12}
end
if(13 <= clicknum) then
clicks[13] = {location = Location(xcord13, ycord13), wait=wait13, rpt=continuous13}
end
if(14 <= clicknum) then
clicks[14] = {location = Location(xcord14, ycord14), wait=wait14, rpt=continuous14}
end
if(15 <= clicknum) then
clicks[15] = {location = Location(xcord15, ycord15), wait=wait15, rpt=continuous15}
end
if(16 <= clicknum) then
clicks[16] = {location = Location(xcord16, ycord16), wait=wait16, rpt=continuous16}
end
if(17 <= clicknum) then
clicks[17] = {location = Location(xcord17, ycord17), wait=wait17, rpt=continuous17}
end
if(18 <= clicknum) then
clicks[18] = {location = Location(xcord18, ycord18), wait=wait18, rpt=continuous18}
end
if(19 <= clicknum) then
clicks[19] = {location = Location(xcord19, ycord19), wait=wait19, rpt=continuous19}
end
if(20 <= clicknum) then
clicks[20] = {location = Location(xcord20, ycord20), wait=wait20, rpt=continuous20}
end
if(21 <= clicknum) then
clicks[21] = {location = Location(xcord21, ycord21), wait=wait21, rpt=continuous21}
end
if(22 <= clicknum) then
clicks[22] = {location = Location(xcord22, ycord22), wait=wait22, rpt=continuous22}
end
if(23 <= clicknum) then
clicks[23] = {location = Location(xcord23, ycord23), wait=wait23, rpt=continuous23}
end
if(24 <= clicknum) then
clicks[24] = {location = Location(xcord24, ycord24), wait=wait24, rpt=continuous24}
end
if(25 <= clicknum) then
clicks[25] = {location = Location(xcord25, ycord25), wait=wait25, rpt=continuous25}
end
if(26 <= clicknum) then
clicks[26] = {location = Location(xcord26, ycord26), wait=wait26, rpt=continuous26}
end
if(27 <= clicknum) then
clicks[27] = {location = Location(xcord27, ycord27), wait=wait27, rpt=continuous27}
end
if(28 <= clicknum) then
clicks[28] = {location = Location(xcord28, ycord28), wait=wait28, rpt=continuous28}
end
if(29 <= clicknum) then
clicks[29] = {location = Location(xcord29, ycord29), wait=wait29, rpt=continuous29}
end
if(30 <= clicknum) then
clicks[30] = {location = Location(xcord30, ycord30), wait=wait30, rpt=continuous30}
end
while true do
for i=1,#clicks do
print("Click "..i.." ".."of "..#clicks)
if(clicks.rpt) then
print("Continuous click at:")
print(clicks.location)
continueClick(clicks.location,100)
else
print("Single clicked at:")
print(clicks.location)
click(clicks.location)
end
wait(clicks.wait)
end
end
But when in parameter i put 0 delay between each an " continuous " option, my phone tap about 100 times the first location, then 100 times the second, etc.
I just would like it to tap 1 time each location but i don't find where to change that. Help me please