Results 1 to 5 of 5

Thread: like virtual keyboard?

  1. #1
    Join Date
    Dec 2007
    Posts
    129
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default like virtual keyboard?

    hi,
    im using qt in windows

    i am creating a bot program,

    i would like to send a keypress signal to "my computer" (outside the program) like the keyboard is virtually press,

    how can i do this??

  2. #2
    Join Date
    Sep 2007
    Location
    Szczecin, Poland
    Posts
    153
    Thanks
    7
    Thanked 11 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: like virtual keyboard?

    Hi,
    I suppose qt is not able to do that.

    U should use
    SendMessage(WM_KEYDOWN /WM_CHAR/ WM_KEYUP
    look at msdn because it's winApi method.

    Be advised that using winApi breaks portability of your app.
    See GrEEn (Graphics Effects Environment)
    http://sourceforge.net/project/platf...roup_id=232746
    a qt-based plugins oriented MDI image processing application(contains also qt plugins like styles & imageformats).

  3. #3
    Join Date
    Dec 2007
    Posts
    129
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: like virtual keyboard?

    tnx i know sendkey() but like what you said it is only for windows im looking for crossplatform qt/c++ code..

    then if qt dont have it maybe c++ has?

  4. #4
    Join Date
    Dec 2007
    Posts
    129
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: like virtual keyboard?

    if im going to make my project work in cross platform,

    what is the equivalent of sendkey() from windows in linux..

    like send keystrokes?

    examples are much appreciated..

    tnx
    trip

  5. #5
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: like virtual keyboard?

    Have a look at this. When I wrote it 2 years ago it worked.
    http://websvn.kde.org/trunk/playgrou...pp?view=markup

Similar Threads

  1. virtual keyboard done with qt4-designer
    By Klaus_EAN in forum Qt Programming
    Replies: 17
    Last Post: 30th December 2010, 09:47
  2. Virtual Keyboard
    By Micawber in forum Qt Programming
    Replies: 1
    Last Post: 3rd September 2007, 20:59
  3. How to Launch Virtual Keyboard on top of TouchScreen
    By arunvv in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 21st June 2007, 19:31
  4. Virtual Keyboard on Qtopia 4.2.1
    By shapirlex in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 11th April 2007, 16:51
  5. virtual keyboard
    By sar_van81 in forum Qt Programming
    Replies: 5
    Last Post: 22nd December 2006, 14:40

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.