case IDC_Spam:
			{	
				while(GetAsyncKeyState(VK_HOME))
				{
					// Functions
				}
				break;
			}

But it didnt work :O

Member Avatar for jencas

IIRC you have to call GetAsyncKeyState(VK_HOME) twice and compare the results to detect if the state of the button changes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.