I've found routine is cure for when I had bouts of insomnia. ROUTINE ROUTINE ROUTINE. My going to sleep process would start at 6. No more internet after that. 6-7 would be eating/watching TV. 7-9 would be reading some kind of boring material such as textbooks. At 9 I would go out for a bike ride to burn off as much energy as I could. 10 I would pop a melatonin pill and take a freaking hot bath, get ready for bed and read. 11:30 lights out. The key was to fall asleep before 12. Following that cycle I could, if I was awake past 12, I'd be awke til 7 the next morning.
Sleeping pills didn't work for me - I'd just lay there feeling close to paralyzed all night (sedated my body but not my 'wired' brain. It was an intense scehdule, but I was normally able to break cycles of insomnia by following that routine for a few days. Not sure why.. but that combination put me to sleep, Shutting out all stimulating things like tv and internet wayyy before bed time, then reading boring stuff to help shut the brain down, followed by exercise and bath, which helped shut the body down. +the melatonin which helps the body too. Absolutely no caffeine consumed (other then maybe a few bits in a piece of chocolate) during the breaking cycle.
I know insomnia sucks, but have you tried expermenting with schedules to help shut your body down so that it can sleep? Lots of different stuff like this is suggested all over the internet. I just took it to the extreme and mixed a bunch together. But then again, you likely have - insomniacs get pretty desperate.
Anyhow, as you can see, I have windows Live messenger. Feel free to add me up. these days my sleeping patterns are often 2-3am to 11am because I'd rather sleep in the morning then at night. So I'm up late.