Of course, after I posted this, it started working again. Heh.
I was gonna do some testing to make sure of how things work when it's working the way it should, but the very first thing I did and the problem came back. (I started it with the driver door open, but pressing the switch in.)
I'm guessing it's not a fuse if it comes and goes? I'm not sure if it would be that delay module either if it comes and goes? I'll see if I can find it at least.
I should mention that when it started working again briefly, I must have accidently hit something on my alarm remote because it started going off and I had to get in and start the truck to turn it off and that's when it started working again. Could be just a coincedence.
As far as lubricating the door latches... is there a something specific I should be using for that or just wd40?
I take it for the rear hatch and glass that there is no switch, just the latches that tell it that they are closed? When the mechanic had it, he said that the computer only had something for the rear hatch and it was just a dirty sensor. It is possible that somehow that got dirty again. Couldn't find it before but that would be explained if it's just the latch.
I'll poke around some more and see if I can come up with anything. Only bit of good news is that I figured out that it has a remote start installed which i had no idea about. (I bought the truck 2 years ago and only knew about the aftermarket alarm.)