|
Post by AnkuLua on Sept 27, 2016 14:40:05 GMT
The behavior of dragDrop is related to app (and device sometimes). Try it on your home screen first. Use swipe if you don't need precise position.
|
|
|
Post by Mercobots on Sept 27, 2016 14:46:41 GMT
The behavior of dragDrop is related to app (and device sometimes). Try it on your home screen first. Use swipe if you don't need precise position. thx for fast reply... im testing on memu emulator, i will try now on andy reply after is the issue is caused by the emulator
|
|
|
Post by Mercobots on Sept 28, 2016 11:33:37 GMT
hi ...
i tested on multiples emulator, memu , andy , bluestacks and the function dragDrop dont work!
So my question is it possible to move the touch around the sreen like
touchDown(x,y),
touchMove(x,y),
touchUp(x,y)
or whit some lib from lua
Thx
|
|
|
Post by AnkuLua on Sept 28, 2016 11:47:24 GMT
It definitely works on BS. We used in many scripts on BS.
|
|
|
Post by davist on Oct 2, 2016 3:50:44 GMT
hello. I'm new to this and trying to run the script when (true) do existsClick("image.png") end the problem I'm running into is the image I'm trying to click on my screen appears only for a split second and then disappears. the script seem to only recognize and click the image only if it stays visible for 2 seconds. is there any way to fix this? any help would be appreciated. essentially I would like for it to immediate tap on the imagine when it appears. I'm using a Samsung Galaxy 6S Edge. Resolution 1440 x 2560
|
|
|
Post by AnkuLua on Oct 3, 2016 2:11:49 GMT
|
|
|
Post by Mercobots on Oct 7, 2016 9:20:17 GMT
hello. it is possible use both type function from lua and ankulua in simultaneous
i tried this :
inputText = typeLua
typeLua= typeOf
and it works but i dont know if it the best way to do this
|
|
|
Post by AnkuLua on Oct 7, 2016 12:12:26 GMT
|
|
|
Post by Mercobots on Oct 7, 2016 12:25:38 GMT
ahh ok... thanks a lot
|
|
|
Post by lenra77 on Jun 21, 2017 9:09:05 GMT
What's the best function to use for timing Boss appearances. The Boss on the game appears on specific time of the day. How can I trigger my script 5 minutes before the actual appearance of the Boss? Is it possible to get the local time? How?
|
|
|
Post by AnkuLua on Jun 21, 2017 10:10:08 GMT
Use os.date() www.lua.org/pil/22.1.htmlFor example, to get the hour and minute in 24-hour clock os.date("%H%M") Note: the return value is string. You can convert it to number by t = 0 + os.date("%H%M")
|
|
|
Post by sonatta on Jun 24, 2017 21:23:16 GMT
hi im pretty new to this. can someone convert autoit simple attack macro to ankulua? its actually similar like this
search green color pixel in huge rectangle area if green color pixel appears click it else teleport to search for monsters
Func Start() while 1 ;loop
$monster = PixelSearch(x, y, x, y, 0x00FF00;-green pixelcolor ) If isArray($monster) then Mouseclick("primary", $monster[0], $monster[1] , 1, 0) sleep(50) Else ;teleport Send("{F9}") endif wend
|
|
|
Post by lenra77 on Aug 18, 2017 23:46:24 GMT
How do you call apps that are running on multiple instances using Parallel Space or the NoxApp+? Normally, you will use the below function to run the original app using the StartApp function:
StartApp(com.appautomatic.ankulua.trial) However, apps running inside Parallel Space or NoxApp+ has a different "Package Name". When checked using Task Manager, the package name for the "cloned app" looks like this:
com.appautomatic.ankulua.trial:x X seems to represent the App running inside the cloning application.
How do I use startApp on this kind of example?
|
|
|
Post by kinginthenorth on Mar 7, 2018 14:54:38 GMT
Please help me with an script for Kings Empire. Use snap and play currently but it's not scrolling the map for searching and attacking the campt
|
|
|
Post by jirenn on Feb 28, 2019 20:02:58 GMT
hi, how to convert hp/sp bar to percent? im playing ragnarok m eternal love i want to make script for the skill playdead i use this code
if exists(Pattern("pdmsg.png"),0) then wait(5) --sp will regen in 5 secs existsClick(Pattern("pdskill.png"),0) --it will cancel sp regen end
sometimes its not working coz the pdmsg.png is changing position coz its only a message sometimes the message is pixelated. when i set the similarity to 0.9 sometimes its not working. but when i set it to 0.5 it keeps on clicking the pdskill.png even w/o pdmsg.png on screen. instead of using the pdmsg.png i will try to use the sp bar so when my sp is at 20% it will click pdskill.png thanks
|
|