AptAssist
By Lee Wilmot AKA Pent
Contents
About
AptAssist is a helper program for Apt which provides
the functionality for the following actions:
- DIA category actions: Silk, Tri, Kbd i.e. the DIA layout
- DIA category actions: KNrm, KShft i.e. the DIA keyboard type
- display rotation
- All Field category actions
- All Ctrl category actions
- Hard button simulation
- display of resource ID lists
- setting khroma theme
Currently the functions can only be called via Apt directly, though I could imagine one
day providing a UI within the program itself.
Use of this Desk Accessory is completely free, I also have no objects to it being used without
Apt.
Download here.
API
(Developers Only)
AptAssist is a DA that is passed arguments via two feature
memory variables and returns a single feature memory argument.
The creator ID is AptA. The features are described below.
- Action (9800)
The thing to do. Sorry these numbers are out of date, you need to experiment!
- 20, 21: rotate display left,right
- 22-26: set display orientation: last user orientation, portrait, landscape, reverse portrait, reverse landscape
- 33-35: Classic, Tri, Standard PIN (no arg)
- 36-45: PIN area keyboard layouts (no arg)
- 54-59 : control tap, enable, disable, menu, scroll up, scroll down (arg is resID)
- 60-67 : field enter, copy, cut, paste, undo, start, end, select all (arg is resID)
- 68-72: sim nav left, right, up, down, centre (arg is repeats)
- 73-76 : sim hard 1, 2, 3, 4 (arg is repeats)
- 76-81: sim treo side, opt+hard1, opt+hard2, opt+hard3, opt+hard4 (arg is repeats)
- 92-96: list IDs: menu, field, control, form (result is selected res ID)
- 112: set khroma theme (arg is theme name)
- Arg (9801)
Argument to the thing to do (see above)
- Results (9802)
Any result of doing the thing.
Source
(Developers Only)
The main part of the AptAssist source code is public domain, you can download
here. It is not compilable as-is,
since a number of utillity functions are not provided. The code was developed with
gcc, pilrc and friends.