lua
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lua [2020/07/24 09:32] – alexcurran1 | lua [2024/10/20 20:29] (current) – Added volume controls frutejuise | ||
---|---|---|---|
Line 207: | Line 207: | ||
===== WatchMaker Lua API ===== | ===== WatchMaker Lua API ===== | ||
- | WatchMaker extends the Lua commandset. Just use the wm_action() or other functions anywhere in your script or tap actions : | + | WatchMaker extends the Lua commandset. Just use the wm_action() or other functions anywhere in your script or tap actions: |
wm_action(' | wm_action(' | ||
wm_action(' | wm_action(' | ||
+ | wm_action(' | ||
+ | wm_action(' | ||
+ | wm_action(' | ||
+ | wm_action(' | ||
+ | wm_action(' | ||
+ | wm_action(' | ||
+ | wm_action(' | ||
wm_action(' | wm_action(' | ||
wm_action(' | wm_action(' | ||
Line 220: | Line 227: | ||
wm_action(' | wm_action(' | ||
wm_action(' | wm_action(' | ||
+ | wm_action(' | ||
+ | wm_action(' | ||
| | ||
wm_schedule(' | wm_schedule(' | ||
Line 232: | Line 241: | ||
return a value of a WatchMaker tag, e.g. wm_tag(" | return a value of a WatchMaker tag, e.g. wm_tag(" | ||
is_bright | is_bright | ||
+ | |||
+ | *About wm_action w_app | ||
+ | |||
+ | The delimiter for the app link is a backtick '' | ||
+ | |||
+ | * App name (may be empty) | ||
+ | * Package name | ||
+ | * Activity name (optional) | ||
+ | |||
+ | The app name is optional. If it is empty, the app main activity is launched. Example: '' | ||
+ | |||
+ | The easiest way to find the package name (example '' | ||
+ | |||
+ | Available activities of apps can be obtained by downloading the APK file and uploading it to https:// | ||
===== Tweening Functions ===== | ===== Tweening Functions ===== |
lua.1595583171.txt.gz · Last modified: 2020/07/24 09:32 by alexcurran1