Press and Hold IR Remote Control Button

you are great Mr. LarryD. thank you very much, thank you very much, thank you very much.
your code is great for me , it is what i looking for. thank you once again.
your code is best for learning ir remote.

sir how can i do same thing with bluetooth module i have HC-05 .
how can i send press and hold command with bluetooth.
can you edit the great code for working with bluetooth module.
please sir if you help me other people will also learn great things.
please help me.