|
Post by AnkuLua on Oct 15, 2015 14:25:07 GMT
Solve Media Project screenshot unstable problemAccording to this discussion, there is change that Media Projection Service may cause internal exception on some devices. In version 3.1.0, MediaProject will be restarted if screenshot not available in a limited time. New Method setContinueClickTiming( downMs, intervalMs) int downMs: click down milliseconds int intervalMs: interval milliseconds between clicks Note: There is some overhead for each command. And the overhead is from device to device. Therefore, if really caring the timing, you should try it in your device.
setContinueClickTiming(50, 50)
loc = Location(270, 320) t = Timer() continueClick(loc, 200) duration = t:set() print(duration)
|
|
|
Post by Badilla on Oct 22, 2015 0:07:42 GMT
How to make it unlimited ?
|
|
|
Post by AnkuLua on Oct 22, 2015 0:48:59 GMT
How to make it unlimited ? Make what unlimited? downMs unlimited is equal to long click, use longClick() instead. intervalMs unlimited is equal to click, use click() instead.
|
|
|
Post by Badilla on Oct 22, 2015 2:18:30 GMT
setContinueClickTiming(50, 50)
loc = Location(270, 320) t = Timer() continueClick(loc, 200)<only 200click duration = t:set() print(duration)
|
|
|
Post by AnkuLua on Oct 22, 2015 2:23:22 GMT
Change 200 to what you want. It should be 32 bit integer. The maximum value is 2147483648.
|
|
|
Post by Badilla on Oct 22, 2015 11:35:13 GMT
Cant be unlimited ? Btw thanks ^^
|
|
|
Post by Badilla on Oct 22, 2015 12:18:17 GMT
One more .. How about replay ? It ends if click reached
|
|
|
Post by AnkuLua on Oct 22, 2015 14:13:23 GMT
One more .. How about replay ? It ends if click reached AnkuLua uses Lua script language. Please refer to Lua Reference Manual. You can refer to the Control Structure section for what you want. And here is an example of unlimited clicks (In fact, it's almost the same as Tap Titans example. loc = Location(270, 320) while (true) do continueClick(loc, 200) -- changed 200 to what you want end
|
|