1)You may have used to speak a lot.
2)Ali is not a hardworking student but he used to get positions,he may have used to work hard.
1 is OK, but 2 is a bit confused, does this sound better:
Ali is not a hard working student but he may have to get used to working hard if hewants to get a good job.
PS Michael Swan has a good book on structure.
- For Teachers