MemoTrans V4.1 By Vincent Debierre VinceDeb@aol.com 10/20/96 Downloaded at http://members.aol.com/VinceDeb System Requirements: ------------------------------------ Visual Basic 3.0 Runtime Library : vbrun300.dll Cmdialog.vbx ; Commdlg.dll ; Threed.vbx ; MsgBlast.vbx Microsoft Windows 3.1 or NT or 95 Included files : ------------------------------------ MemoTXXX.exe Windows executable file(XXX = revision number) MemoHtm.ini Html stripper initialisation file Readme.txt This text file Overview: ------------------------------------ This program add any text file to your memopad automaticaly. It has also an HTML code stripper integrated with an autodetect option. You can use it through : - the interface, - the command line, - Drag&Drop from the File Manager or Explorer - the Send To command in Win95 right click, - or by throwing a file over its icon on the win95 desktop. You are also able to have multiple configurations : just copy the EXE file and rename it as you wish. It will create a new INI file with the same name. With version 4, you are now able to run the MemoEdit. This part of the program allows you to perform these operations : add, edit, delete, undelete before HotSync (basicaly what PilotDesktop is doing). CAUTION : personal items will be visible in any case. Instructions: ----------------------------------- 1) Run the program 2) Configure the header and the options you want to keep as default Go in the config menu, enter the Pilot directory and save. 3) The "HTML Autodetect" option is very useful, if you want to use the internal Stripper. "Stop after Drag&Drop" : when checked the program will stop if you use it trough SendTo or after you Dragged&Droped a file over MemoTrans icon on the win95 desktop 4) Select the file to transform OR Drag&Drop a file from Explorer (or File Manager) 5) Check the desired options, 6) Press the "Transfer" button button (Pilot desktop should not be running or be set to another user) 7) HotSync your Pilot ----- OR -------- Use the command line : ---------------------------------- MemoTXXX.exe File_To_Transform "Begining_Of_Header" "Title" "End_Of_Header" -[Options] Even if you don't want the Begining_Of_Header, Title or End_Of_Header insert "" (empty string) Options are : d : Date stamp y : Date stamp with year p : Page number stamp w : Cuts at end of Word l : Cuts at end of Line r : Private h : Html t : text c : Specify the target category Followed by the name of the category between quotation marks NOTA : if you dont specify a option, the program uses the default option saved. Example : -------- Command line : MemoTXXX.exe c:\data\Bigfile.txt "---" " Text from David" "---" -dplc"internet" And you will get this kind of header : "---06/10 Text from David 1/4 ---" transfered in "internet" category. ----- OR ------ If you put MemoTrans on your office (Windows95 screen) : Drag and Drop a file over your MemoTrans office icon : It will automaticaly import the file in default category in the Pilot Desktop with the header you saved with "Config.". The file name will be inserted if you've selected the middle header. (You can also put an alias of MemoTrans in the SendTo directory of windows95) HotSync: -------------------------------- When you HotSync your Pilot your new memos don't seem to stay in the correct order. To keep the correct order, you should select "Desktop overwrites Pilot" in the custom menu (HotSync menu). Remember that doing so, the memos you've entered in your pilot since the last HotSync will be lost.(Do a normal HotSync before...) I added an option. Once configurized, when you execute MemoTrans, HotSync will use the configuration that you have saved in the config window ("HotSync button"). Configurize the HotSync to use with Memotrans : ----------------------------------------------- - Start Pilot Desktop and go in the Custom menu (HotSync) - Set All the options to the desired setting I suggest : Every thing with "do nothing" with "Set as default" Except Memopad with "Desktop overwrites Pilot" "set as default" - Start MemoTrans and go in "Config", push the HotSync button - After two "OK" pressed your configuration is saved and Memotrans has exit - Reconfigure the Custom menu to the setting you had before.(don't forget to "set as default") - Exit Pilot Desktop or set Pilot Desktop to a user you won't use with MemoTrans. - Start MemoTrans As long as MemoTrans is on, your HotSync will use the saved setting. Html stripper : -------------------------------------- The html stripper integrated in MemoTrans is customable with the memohtm.ini file. When MemoTrans encouters a tag listed under a section ([html], [ul],... it replaces it with the defined expression. The expression is made of : cr : LineFeed + CarriageReturn &aaa& : String between ampersand character (34) : Any character defined as ASCII decimal number But when MemoTrans encounters a tag defined as a section([ol], [ul],...) it uses the definition tag defined under the new section until it encouters the ending tag (e.g. </ul>). You should also defined ending statement under [html]. You can defined as many html tag as you like but no section. Under the [Chr] section is defined special characters. Hints: ------------------------------- - When the middle header is checked but empty (and saved as default),any selected file will be enter in this part of the header. - If you save the config with "HTML" checked, the autodetect is off and Memotrans will try to strip html code out of any file. Troubleshooting : ------------------------------- - If a error occurs during the writing of the "memopad.dat" file, this file can be unusable by the HotSync Manager. You are able to use the Back-up file "memopad.bak" which is a copy of your "memopad.dat" just after your last HotSync, or you can use "memopad.mmt" which is a copy of "memopad.dat" just before using MemoTrans. If you get this message when you are trying to open Pilot Desktop : " Pilot caused an invalid page fault in module MFC30.dll..." you should erase your current "memopad.dat" and rename one of the 2 above. - In the config window, you must enter the Pilot desktop directory without the "pilot.exe" (but with the last "\"). - HotSync Manager must be running. - The .ini file must stay where the application is located. - The number of memos on disk are the number of all the memos that have been created since the last HotSync. It includes the one you'have already deleted. - If you create, delete or rename users, you should reconfig HotSync in MemoTrans Disclaimer and Usage Agreement: ------------------------------- I MAKE NO GUARANTEE THAT THIS SOFTWARE WILL FUNCTION FLAWLESSLY NOR WILL I TAKE ANY RESPONSIBILITY FOR DAMAGES INCURRED BY THE USER EITHER ACCIDENTALLY OR INTENTIONALLY THROUGH THE USE OF THIS SOFTWARE. THE SOFTWARE IS PROVIDED AS IS. IT IS FREEWARE AND YOU MAY DISTRIBUTE IT AS SUCH PROVIDING YOU KEEP THE PROGRAM FILES, THE ASSOCIATED DATA FILES IN ORIGINAL INTACT CONDITION. THIS PROGRAM MAY NOT BE SOLD COMMERCIALLY OR PRIVATELY WITHOUT THE PERMISSION OF THE AUTHOR. Revision History : ----------------------------- v4.1 Bug in MemoEdit that misses the last memo and bug in the "New memo" procedure removed v4beta Bug when a category name had space removed MemoEdit : add, edit, delete and UNDELETE. v3.07 Bug when category has more than 8 letters removed No header bug removed v3.06 Bug when used with a lot of memos corrected Html stripper review to handle special chr more efficiently Show the saved category when config is saved v3.05 The use with Pilot Desktop simultaneously is more stable v3.04 Command line bug corrected v3.03 Html stripper corrected for space character after a carriage return Options for cutting procedures improved v3.02 Readme file rewrited Latent bug corrected v3.01 255 octets bug fixed v3.0 Version rewrited Transfer text directly to memopad ready for HotSync Integrated Html stripper, user customable, and autodetect Private option MultiUser Number of memos preview HotSync configuration v2.5 Full Drag&Drop support Faster exe v2.4 Multiple configurations Name your category through command line Page counter corrected Stop after Drag&Drop (option) Code improved (Smaller than v2.3) "Space in header" bug corrected V2.3 Automatic Import to the Pilot Desktop to a specific category Deletion of file after import (option) Minor bugs corrected V2.2 Drag and Drop feature when not started Minor bugs corrected V2.1 Command line added Date stamp in header added V2 Header added Config saving added ----------------------------------------------------------------------- Windows is a trademark of Microsoft Corporation Pilot Desktop, Pilot, HotSync are a trademarks of US Robotics, Inc. All other brands and product names are registered trademarks or trademarks of their respective holders. How to contact the author: E-mail : VinceDeb@aol.com Fax number : 33-1.64.24.55.13 ATTN : Vincent Debierre Postal address: Vincent Debierre 12 chemin de la saussaie 77123 Noisy sur Ecole France