I have written a replacement for TAPCommander, called TMSCommander. What this TAP does is once a TAP has the appropriate code in its event handler, TMSCommander can call it to tell it to display its menu (or perform other functions). Below is a graphic for its menu - it basically discovers at run time which TAPs it can talk to, then you scroll to that line and press OK to call the menu.
I would like to thank Firebird for his library and help.
Download here: TMSCommander
Last version attached below.
Fixes/changes in 1.6
- Support Favourite TAPs
- Support stopping/starting any TAP
- Added Dutch language thanks to Roger-DTL-Stijfs
Fixes/changes in 1.5
- Remove Network Listener
- Refresh menu buttons when enable/disable-ing
Fixes/changes in 1.4
- Menu option for Network listener timeout seconds
Fixes/changes in 1.3
- When selecting an item by number update the buttons available for that item
- When selecting an item by number allow 0 to select the 10th item
Fixes/changes in 1.2
- Listen on network port for commands.
- On exiting TMSCommander pass Exit key on.
- Check for Info box on screen on processing TMSCommander key
- Allow OK button for UserEvent. If OK and no UserEvent default to Menu
- Allow selection of TAP using the numbers for the item
- uses FireBird’s KeyTranslate to support different remotes/boxes
Fixes/changes in 1.1
- Allow TMSCommander to work without the language file – it will default to English
(this is for those users that find it difficult to get the lng file onto the box)
Fixes/changes in 1.0
- this version allows a TAP writer to support another calling method (UserEvent).
For example say a TAP has a menu but also has another screen - then by supporting the UserEvent,
a user can use TMSCommander and press the yellow key on the TAP list to call the TAP's other screen.
Fixes/changes in 0.9
- fixes the reboot issue with disabled TAPs
Fixes/changes in 0.8
- add general language support (German/English language file included) - thanks to Olaf/Firebird
- Firebird's mods to disable taps
Need to copy the TMSCommander.lng file to the same folder as the .TAP.
Fixes/changes in 0.7
- Allow user to change between OK or Menu to select a TAP's menu
- Info button cycles between different screens: Description, Capabilities, TAPIDs, Authors
Fixes/changes in 0.6
- fix bug where infoscreen clearing leaves hole in menu
- refresh list after stopping tap
This is the code that you would add to your TAP:
Code: Alles auswählen
if (wEvent == EVT_TMSCommander)
{
switch (dwParam1)
{
case TMSCMDR_Capabilities:
//TMSCommander wants to know what we support
return (dword)(TMSCMDR_HaveMenu | TMSCMDR_CanBeStopped);
case TMSCMDR_Stop:
//TMSCommander has told me to stop
//call your TAP's exit function or
TAP_Exit();
return TMSCMDR_OK;
case TMSCMDR_Menu:
//TMSCommander has told me to show my menu
//call your TAP's menu
return TMSCMDR_OK;
case TMSCMDR_Exiting:
//TMSCommander is exiting - do we want to do anything?
break;
default:
//unknown TMSCommander function
return TMSCMDR_UnknownFunction;
}
}