Comments (2)
use adb from bash script like adb shell input touchscreen tap x y
Replace x and y with the coordinates of the point on the screen where you want to simulate the touch event. The coordinates are specified in pixels, with the top-left corner of the screen being (0,0).
You can also use the pyadb library to execute the input command from Python. Here is an example:
import pyadb
# Connect to the device
adb = pyadb.ADB()
device = adb.device()
# Simulate a touch event at (100, 200)
device.shell("input touchscreen tap 100 200")
from rain.
You can also use the pyadb library to run the dump command from Python. Here is an example:
import pyadb
# Connect to the device
adb = pyadb.ADB()
device = adb.device()
# Dump the current screen layout
layout = device.shell("uiautomator dump")
# Print the layout
print(layout)
you will get something like this
<hierarchy rotation="0">
<node index="0" text="" resource-id="" class="android.widget.FrameLayout" package="com.example.app" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,0][1080,1794]">
<node index="0" text="Hello, World!" resource-id="" class="android.widget.TextView" package="com.example.app" content-desc="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" scrollable="false" long-clickable="false" password="false" selected="false" bounds="[0,0][1080,1794]"/>
</node>
</hierarchy>
See if we can read invoices and account balances while you're at it
from rain.
Related Issues (20)
- funding listener
- Auto rotate tunnel sats configs HOT 1
- sink/source open source channels
- notify when channel is depleted
- Node SinkChannel + SourceChannel Strategy
- add Bluewallet
- Add phoenix/acinq
- Add wallet of satoshi
- Add fixedfloat
- Add boltz
- Add okex
- Add strike HOT 1
- Add bottle pay HOT 1
- swap operators inherit base class
- Channel Manager State Machine with Tests
- LND.pay_invoice() takes constraints
- Discussion]
- Cost aware rebalancing - prerequisites HOT 1
- python3 run.py init wos
- Add paxful
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rain.