lua
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lua [2024/08/10 12:30] – document wm_action w_app korkman | lua [2025/04/12 07:47] (current) – old revision restored (2024/10/20 20:29) splitbrain | ||
|---|---|---|---|
| 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_action(' | ||
| | | ||
| wm_schedule(' | wm_schedule(' | ||
| Line 233: | 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.1723293015.txt.gz · Last modified: by korkman
