While(Holding Button)

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2008
Posts: 99
Reputation: FTProtocol has a little shameless behaviour in the past 
Solved Threads: 1
FTProtocol FTProtocol is offline Offline
Junior Poster in Training

While(Holding Button)

 
0
  #1
Jul 3rd, 2008
  1. case IDC_Spam:
  2. {
  3. while(GetAsyncKeyState(VK_HOME))
  4. {
  5. // Functions
  6. }
  7. break;
  8. }

But it didnt work :O
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 359
Reputation: jencas is just really nice jencas is just really nice jencas is just really nice jencas is just really nice jencas is just really nice 
Solved Threads: 69
jencas jencas is offline Offline
Posting Whiz

Re: While(Holding Button)

 
0
  #2
Jul 3rd, 2008
IIRC you have to call GetAsyncKeyState(VK_HOME) twice and compare the results to detect if the state of the button changes.
Last edited by jencas; Jul 3rd, 2008 at 4:01 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC