There have been several replies - just because you didn't get an answer you liked does not mean there were no replies. The replies you have been given are completely workable. It does
require that you stop wasting time and actually implement a solution.
What you want to do is incredibly common/sinple and you have made an entire project of it
If you would follow any of the replies, you would already have this running.
If you are looking for someone to write the code for you, suggest you try some other forum. We will help, but not do your work for you.
Should the code be posted by anyone other than you, it will be deleted. If you want help with some code, post that and we can advise. . .