Movie Database 1.1 - [3/15/2005] - This is a simple C#/Access program database I wrote for
my Father to keep track of his DVDs that he loans to people. It could definitely use a few
user-friendly upgrades, but it is very straight-forward and works well. The zip file contains
the executable, the access database, the main source file, and some basic instructions.
Keyboard Mouse Control - [11/4/2005] - This program allows you to control your mouse with
your keyboard. Alt+Ctrl+(Arrow Key) moves the mouse in increments of about 10% of your screen size
in order to move the mouse fast. To make small movements you just add the "Win" key while holding down
the others. You can also left click using Ctrl+Alt+Enter and Right Click using Ctrl+Alt+"0"(from numlock).
I used the Global Hook class found here:
http://www.thecodeproject.com/csharp/globalhook.asp?print=true.
This was an excellent tutorial. You can download the project here:
globalhook_src.zip. Using his class I modified it to react to the keystrokes of my choice.
I had to use some Win32 stuff for the mouseclicks, but it was neat to do and learn. The zip file contains
the program, the mainform.cs, and some instructions.
Word to Html Converter - [1/2/2006] - This is a very simple program that I wrote to convert ".doc" word files to
html files. You can do this in word by choosing a save as option, but when you have to convert a few
hundred word files that isn't practical. You can use it like a normal program and it will prompt you for
the file location(absolute path), or you can feed it file names when you call it like:
Word2Html File1 File2 File3 etc...|
public bool DocToHtml(string docPath, string htmlPath) { try { Word.Application app = new Application(); app.Visible = false; Object o= System.Reflection.Missing.Value; object docFile = docPath; _Document doc = app.Documents.Open(ref docFile,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o); // Office 2000 //_Document doc=app.Documents.Open(ref docFile,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o); // Office 2003 object fileName = htmlPath; object format = 8; // Html doc.SaveAs(ref fileName,ref format,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o); // Office 2000 //doc.SaveAs(ref fileName,ref format,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o); // Office 2003 object t = true; app.Quit(ref t,ref o,ref o); return true; } catch(Exception e) { return false; } } |