You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, December 16th 2010, 5:08pm

Virtual keyboard on Qt

Hi there,
I want to implement a program which emulates some keyboard key strokes. I have read that there's a function called 'Send key()' in windows API (This time my project is confined to windows only). Since i am a beginner, I don't know how to use such stuff. Can anybody help in using those functions, or any other ideas?
Thanks in advance.
Be free, feel freedom.
http://opentechlab.blospot.com

2

Sunday, December 26th 2010, 3:18pm

Is there any possibility to make an onscreen keyboard in Qt? (In windows)
Be free, feel freedom.
http://opentechlab.blospot.com

3

Sunday, December 26th 2010, 7:18pm

Have a look here.. It is an example.. I hope it helps :)

4

Monday, December 27th 2010, 4:34am

I think it works only on the same qt window. I need to control other external application through the virtual keystrokes. I found a win32 api function - SendKeys(). But I don't know how to access it.
I just added
#include<windows.h>

and started calling api functions. But some error occures:

"'SendKeys' was not declared in this scope"
Be free, feel freedom.
http://opentechlab.blospot.com

5

Friday, December 31st 2010, 4:37pm

Can anybody help me to use windows API in my Qt app please? :(
Be free, feel freedom.
http://opentechlab.blospot.com

anjanu

Beginner

  • "anjanu" is male

Posts: 6

Location: India

  • Send private message

6

Saturday, August 27th 2011, 10:48am

did you get through it ??? I want to do the same for mouse clicks...but can't

7

Saturday, August 27th 2011, 7:13pm

You can. It is better to go for python tricks and use qt GUI. It is PyQt. If you are not aware of PyQt,
http://www.riverbankcomputing.co.uk/software/pyqt/intro
Then, for keyboard control go here:
http://www.rutherfurd.net/python/sendkeys/
It works. For mouse, I don't know the exact answer. But surely you can find solution in Python.
Be free, feel freedom.
http://opentechlab.blospot.com