|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
STV Import: Menu Shortcut Bars
This plugin will allow you to select any SageTV menu with only 2 remote button presses. The first press would be one of the Custom1..5 buttons and the second would be one of the numbers on your remote. This will give you the ability to assign upto 50 SageTV menus to your remote to quickly goto the SageTV menu of your choice - 5 Custom buttons and 10 menus each. The plugin is located in the Download section of the forum.
If you press a custom button twice or just once and wait until the timeout occurs the default action for the particular custom button is taken. For instance if you have the ComSkip import loaded and you also have assigned menus to the Custom4 numbers than you can press Custom4 twice and skip back in the media player or just do nothing in other menus. However if you press a number key before the timeout occurs and it is assigned to a menu you will go to that menu. NOTE: to just cancel the Custom1...5 command and do nothing you just need to press the button assigned to "Back" or "Options". The configuration menu of this plugin was written to match the style of SageTV 5.0.4 but uses no code from the existing STV internally so this should make it more compatible with other STV's. It has been tested with SageMC for instance. But I have not tested any others. The only points of contact between the existing STV and this plugin after being imported are Detailed Setup>Customize and Detailed Setup>Import. As long as the other STV is laid out similar to the Default STV or SageMC in those locations it will probably be importable. The code to generate the list of SageTV menus in the configuration screen was taken from NIELM's dynamic menus. So any menu you can get to with NIELM's dynamic menus you should be able to use with this plugin as well. The documentation for this plugin is contained within this post. It should be fairly self explainitory but if you need additional documentation let me know and I will put together something. To access the configuration menu for this plugin (the first time anyway) you need to go to "Detailed Setup>Customize>Popup Menus". You will be greeted with the following menu: From this screen you can choose the custom button, number and menu to assign. As you select the options a green circle will be displayed on the left side of the button and will look something like this: When you have all three selected you must use the Save Choice menu option to save this to your SageTV properties file. The Clear Choice only clears the screen display it does not remove your selection from the properties file. To clear it from the properties file just change to the "***Default***" menu selection and that effectively clears it from the properties file. The "Clear All" menu choice however will completely remove all entries from the property file so be careful with it or you will have to start all over again. Back will take you to the previous menu you were on which will be Detailed Setup the first time anyway. If you have a Custom1...5 command selected and select "Test Popups" menu above you will then display the "Menu Name" popup menu type to allow you to see your menu choices and test them out while still on this configuration screen. The Options menu for this configuration screen can be displayed either by selecting "Options" or pressing the button assigned to Options. The Options menu looks like this:
The "Menu Name" popup menu displays the full height of the screen and shows the remote number button and the first part of the menu assigned to it. It will look something like: NOTE: when you press a button number that has ***Default*** assigned to it no menu will be brought up. It will just execute the default action for the Custom1...5 command. I almost removed this menu since the smaller one now includes the menu name when you highlight one of the numbers but I decided to leave it in since you can see all of the menu names at once. The "Menu Num" popup menu displays just the remote button numbers in a menu and the menu name of the highlighted number and looks like this when displayed: or in SageMC: The current version 0.4.0 is fairly stable. It should install on top of itself if you need to reinstall it for some reason. But it will not install on top of version 0.3.0 because the name has changed It should be considered to still be beta as it has only been tested on my MVP and Development system. Now for those that want to know a little bit about how this was coded: When installed and whenever another plugin is installed it goes out and looks for Custom1 thru Custom5 Listeners and copies the code beneath them to the Global theme defined in this plugin. It puts a code value in each Custom Listener to let my code know where it came from and thereby execute the moved code that is appropriate. This lets me jump to a menu from any screen and still maintain the existing code for the Listeners. This code also looks for other Global Themes upon it's import and other imports and copies the non- Custom1...5 code to the Global Theme in this menu. It then renames the other Global Theme to GlobalSave so that it won't be used instead of the one in My plugin. Since I also hide my Global Theme and restore the Custom command code before an import it will add extra processing time to other code to be imported. Please post suggestions and problems to this thread and if you have problems revert back to the code prior to this import if I can't solve your problem in a timely manor please. Thanks. BobP. 08/19/2006 ChangeLog:
09/05/2006 ChangeLog: Second try at adding double press does default action had a logic error that prevented the above change from working that has been fixed now at version 0.4.1. This was the only change from version 0.4.0 above. Last edited by BobPhoenix; 09-05-2006 at 04:44 PM. |
#2
|
|||
|
|||
Hi Bob,
this looks like an awesome addition Haven't had the chance to try it out yet, but may I make a suggestion: why not, in addition to letting it time out, also call the original custom1-custom5 listener if the same custom button is pressed again within the timeout period ? The thumb is already on that button, so it would make calling the original mapping a little faster than waiting for the timeout . Of course, only if technically possible... And yeah, I also think that "PopupMenus" feels a little awkward. What about 'Custom Mapper' ? Well, I'm sure there will be some other different suggestions ... Dirk |
#3
|
||||
|
||||
BobPhoenix,
This looks really cool. I have two little suggestions. In the 'menu num' popup, it looks like you have to remember what screen/command was mapped to each number. That's up to 50 numbers to remember. If possible, it would be nice if the screen/command name for the highlighted number was listed next to the 'Custom Command Name' maybe separated by a dash or something. That would make use much easier without taking up the screen real estate of the 'menu name' popup. The second suggestion is for the name. It seems to me that this great feature could be best described as a 'ShortcutBar', or something like that. Thanks for the hard work! Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#4
|
|||
|
|||
Quote:
Quote:
|
#5
|
||||
|
||||
You want name suggestions? ... Quickly Access Favorite Features? QUAFF, for short.
You can see why I didn't go into marketing... - Andy |
#6
|
|||
|
|||
Quote:
BobP. |
#7
|
|||
|
|||
Quote:
|
#8
|
|||
|
|||
OK I have updated the plugin and uploaded the new version. It implements the suggestions from flachbar and MeInMaui - thank you for the suggestions guys.
ChangeLog:
Edit: Opps found out #2 isn't working correctly yet - try to get a double press to work correctly - logic error on my part and at the time I put the code in I had nothting to test - opps. Last edited by BobPhoenix; 09-05-2006 at 03:59 PM. |
#9
|
||||
|
||||
Looks great! I'll try it out as soon as I can.
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#10
|
|||
|
|||
OK posted a new version 0.4.1 that actually makes the double press of a custom button execute the default action like it was suppose to with the previous update - opps!
Problems or questions just let me know. BobP. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|