Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaadddfgh/clicker-master-lib
https://github.com/aaadddfgh/clicker-master-lib
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aaadddfgh/clicker-master-lib
- Owner: aaadddfgh
- License: mit
- Created: 2024-03-03T21:31:45.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-03-12T14:03:16.000Z (8 months ago)
- Last Synced: 2024-03-13T15:07:53.467Z (8 months ago)
- Language: HTML
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Info
This is the master side js/ts lib for [Android-Remote-Clicker](https://github.com/aaadddfgh/Android-Remote-Clicker)
Find source code [here](https://github.com/aaadddfgh/clicker-master-lib)
Examle UI can be find in `/public/`.
Data security still WORKING.
# Example
Direct use [example.html](./public)
``` js
import { CommandJsonBuilder } from "../src/CommandJsonBuilder"let commandBuilder =new CommandJsonBuilder();
commandBuilder
.click(1,2)
.sleep(100)
.swipe(100,200,300,400)
.swipe(100,200,300,400,500)
.swipe(100,200,300,400,500,1000)
;let out=commandBuilder.build();
if(out.commands!=="click 1 2;sleep 100;swipe 100 200 300 400;swipe 100 200 300 400 500;swipe 100 200 300 400 500 1000;"){
throw new Error(out.commands);
}
console.log(out)
console.log(commandBuilder.buildString())```