|
|
本帖最后由 meder 于 2024-3-5 18:50 编辑
Auto.js安卓10以上无法获取剪切板的解决方法:
- threads.start(function (){
- var win = floaty.window(
- <vertical>
- <input id="input" w="*" h="50"/>
- <button id="start" text="开始"/>
- </vertical>
- );
- auto.setWindowFilter(function (window) {
- return true;
- });
- ui.run(() => {
- win.requestFocus();
- win.input.requestFocus();
- });
- threads.start(function (){
- et = className("EditText").findOne();
- et.paste();
- log(win.input.text());
- ui.run(() => {
- win.disableFocus();
- });
- });
- });
复制代码
|
|