|
Post by ziggadyzig on May 8, 2022 16:45:32 GMT
I’ve tried editing snap and play scripts I’ve built, but always get “in chunk” errors. I’m wanting to add the killApp function. Is it possible to edit snap and play scripts? If so, how? Seems like the format in snap and play is slightly different than all the editing tips posted in all the discussions.
|
|
|
Post by AnkuLua on May 8, 2022 23:48:35 GMT
Please share the error screenshot.
Some editors may cause incorrect saved format. Use Android text editor app first.
Please post the edited luar if still error.
|
|
|
Post by ziggadyzig on May 9, 2022 14:53:02 GMT
|
|
|
Post by ziggadyzig on May 9, 2022 14:53:50 GMT
Sorry...that was
------ 12 ----- touchList[index] = {target = "16_91_bgs____.png", region = Region(861, 1912, 70, 30), id = "16_91_bgs____", action = 'killApp' (com.glu.baseball22} index = index + 1
|
|
|
Post by AnkuLua on May 9, 2022 23:37:06 GMT
should be 'killApp(com.glu.baseball22)'
|
|
|
Post by ziggadyzig on May 12, 2022 22:03:22 GMT
I applied your suggestion...and I didn't get an error at startup, but when the script was trying to kill the app, I got this error: Here is my full line of code: ------ 24 ----- touchList[index] = {target = "91bgs91____.png", region = Region(794, 1838, 170, 170), id = "91bgs91____", action = 'killApp(com.glu.baseball22)'}
|
|
|
Post by AnkuLua on May 12, 2022 23:34:20 GMT
Sorry. it should be action = 'killApp("com.glu.baseball22")' And remember that killApp() only works for daemon or root modes, not for accessibility mode.
|
|