PDA

View Full Version : Released: sendkey for v4.0 and higher


MuscleNerd
08-06-2004, 08:18 AM
The attached zip file contains a sendkey executable for Series 2 machines running v4.0 and higher. Many people probably realize that sendkey functionality was lost starting with the 4.x software. This executable fills that void.


Usage: sendkey [options] <keyname> [<keyname>...]
Send one or more keypress events to TiVo software v4.0 and higher

Options:
-l List all possible keypress events
-w Wait for ack after sending each event
-r Treat arguments as raw event numbers instead of names
-v Verbose mode

Note: The keypress event names are case-insensitive.
NUM0 through NUM9 can be written as 0 through 9

sendkey v1.2
Copyright (c) 2004 by MuscleNerd
All Rights Reserved.
Permission to use and distribute this software for non-commerical use
is hereby granted, provided that both the copyright notice and this
permission notice appear in all copies of the software, derivative works
or modified versions and any portions thereof, and that both notices appear
in supporting documentation.

MuscleNerd
08-06-2004, 08:50 AM
Just a few usage notes:

This is meant to run natively on your tivo box (there's no network support).
You can specify multiple key names on the command line, like "sendkey -w nowshowing tivo 2" This particular example should consistently get you to the "To Do" menu. I could have written that "2" as "num2" if i wanted to be technical.
The -w (wait) option eliminates the possibility of going too fast for the tivo UI. But it also slows the sends down slightly, so it's a tradeoff.
In some places, the -w option is *blocking*. For instance, if you're already in Live TV and do "sendkey -w record", then it won't return control to you until the user has selected a confirmation option from the record menu. You can always ^C it in that case, too (or just don't use the -w option).
As pointed out in the usage note, you don't have to use num0 or num1 etc..you can use their aliases of 0 and 1 etc
Remember to separate multiple key press names with spaces! The proper way to change the channel to 331 on a dtivo, for instance, is
"sendkey -w 3 3 1 enter"