I have a HTC One M7 and long story short the screen is completely destroyed but the phone still works because i still get beeps and LED blinks when someone messeges me. I would like to get my pictures and contacts off of it but when i try i have to unlock the phone to get a access to the files and the touch screen is broken so that isnt possible. Also i cant see whats happening on the screen which makes the situation even worse. Can someone please help me get my files off without having to physically put in the pattern. Please and thank you.
If you have rooted your phone you can try to use android control. It allows you to see the screen and touch the screen through ADB but it is a bit hard to get working sometimes.
If you can see the screen you can try an USB OTG cable with a USB mouse attached to it. I had this for a week when my touch broke down physically, people tend to look at you weird with this but it works quite well.