How to change the 'keystate'

Hey there, I don't understand much about windows programing, though I'd like to make a program that copy a different string at the clipboard each time the user presses V (the user is responsible for the pasting).
So far here is what I made:
1
2
3
4
5
while(true)
{
if( GetAsyncKeyState( 'V' ) & 0x8000 )
            setClipBoardString(frase);
}


and the function 'setClipBoardString()' is supposed to copy the string, everything is working fine, the problem is that the 'GetAsyncKeyState()', just check the last letter that was pressed, so the while keeps copying to the clipboard nonstop. I'd like to change the KeyState to another letter, is that possible? Any suggestion is welcome.
Topic archived. No new replies allowed.