Writing Scripts For Android So I recently downloaded ScriptRunner for android and was wanting to learn how write a basic script to open an app click at a certain x y coordinate and perhaps take a screen capture at a given time. So if anybody could get me started in the right direction id very much appreciate it.
Have a look at UI Automator https://developer.android.com/training/testing/ui-automator
If you want just something very simple, you could create a shell script with adb commands instead. E.g.:
Click on coordinate 500, 500:
adb shell input tap 500 500

Launch an app:
adb shell am start com.package.name

Take screenshot:
adb shell screencap -p /sdcard/screenshot.png