OptionsSearch
|
Intro:
This script is designed to allow you to edit simple text files on your XBox, without
the hassle of an FTP transfer. I have made no improvements to the in-game keyboard,
nor have I built in any support for USB keyboards (for all I know, they might work
automatically--I don't have one, so I can't test). The XBox is NOT a particularly
pleasant environment for editing text, so I don't recommend this script for writing
the Great American Novel.However, it will be an excellent resource for changing config file settings, or making small adjustments to Python scripts during development (tweaking the exact location of that ControlButton, or changing the timeDelay from 10 to 20, for instance). Installation and Operation: In order for the script to run properly, "Notepad.py" should be copied to your XBMC installation's "/scripts/Notepad/" subfolder, along with the various image files that come packaged with it ("background.png", "white.png", "edit.png", "delete.png", and "insert.png"). I've also included GIF versions of all included image files to help this script run with the PC Emulator, in case you want to help me with debug issues. In addition to the Notepad files, you'll need to copy the attached "xWidgets.py" to either the "/scripts/Notepad/" folder, or to your XBMC's "/python/Lib/" subfolder. I recommend the latter, as I'll be using xWidgets in several future scripts, and extending it as well. In order to use Notepad, simply launch it from the script launcher. Press "A" on your controller (or "Select" on the IR Remote) to "Open" a document on your XBox hard drive, create a "New" text document there, or "Save" the one you're currently editing (using the appropriate button). In order to edit a new or opened document, press Down from any of the control buttons, and an edit cursor will appear to the left of one of the lines. Use the right and left triggers to cycle among your editing choices (a red "X" for Delete Line, a black ">" for Insert New Line, or a tiny pencil for Edit Line). If you choose to edit an existing line, the keyboard will pop up, showing you the selected line. Select "Done" to close the keyboard and keep any changes. Notepad is capable of saving multiple steps of Undo (and Redo) to help protect you from unwanted changes to your text. The default setting is 10 steps back, but you can easily increase this value. (Note that the higher this value, the more likely it becomes that Notepad will begin using excessive memory and slowing down your system.) Simply open "Notepad.py" and change the value for "UndoSteps" near the top. To Undo one step, press "B" on your controller (or "Back" on the IR Remote) while in editing mode. To Redo one step, use "Y" on your controller (or "Display" on the IR Remote). Download: Full download Changelog: A changelog.txt file is included with the download. Below is the most recent list of changes: Updated August 29, 2004
Known Issues:
Future Development: |