I'm like that and one of my friends as well. We're both not diagnosed but strongly suspecting AD(H)D, and I'm also diagnosed with autism.
I can't count the times I started trying to learn programming and ended up quitting for that very reason - but every time I did I knew a little bit more. So I just tried to learn my way and next time I wouldn't need to look up asuch and got a little farther. But I also have the luck of having programmer friends who don't mind trying to answer my sometimes very unusual questions, and over the several attempts I've learned enough to be able to work in test automation.
If you have patient and encouraging people around you you'll eventually get there :) don't go for ui at first, look for console programs so you can get to things like conditions and loops quickly. That's where the meat is for me.