I was wandering if someone could give me an idea to have windows shutdown when i put it on repeat

Using this method i could have the computer shutdown using palm amp ....

i was thinking of a winamp ocx and making a soft on vb that would listen for the repeat command and shutdown the comp when it's pressed

i could have it shutdown when repeat would be pressed 3 times in a row or just once

What do you guys think ?
and if any of you know of a sampler method let me know
I dont want to have any buttons besides my palm