If you post the code that looks most promising to you and perhaps include what it doesn't do, perhaps someone here can fix it up so it works for you?