Question about API
-
Hi...
Is there any help for this? How to make an application so we can use our own input for replacing mouse event like using win32 API?
I found in Microsoft Power Point there is an input API, so we can built a new interface to control some action in power point. How about this in Qt?Thanks...
-
I am not entirely sure you stated your question clearly enough.
Are you talking about low level windows C APIs, such as handling raw user input for example? Or are you talking about the extension APIs microsoft has provided for their office suite?
You ask if Qt has APIs to work with MS office products? No.
You ask if Qt can be used to create custom UI tools to control actions in Qt applications? Yes.
You ask if Qt can be used together with the native APIs from microsoft? Yes. -
Thanks for reply,
[quote author="utcenter" date="1357951701"]
...
You ask if Qt has APIs to work with MS office products? No.You ask if Qt can be used to create custom UI tools to control actions in Qt applications? Yes.
You ask if Qt can be used together with the native APIs from microsoft? Yes.[/quote]
I mean the second and the third.
The example application is like to run MS Paint application, but the user action to draw something or select menu from task bar comes from other device replacing mouse. The coordinate already recorded in my QPoint.
Which is suitable the second or the third one option? Is there any link tutorial about that option?
:) -
I still don't completely understand what is it that you want to do.
Right now you sound like you want to record mouse actions in Qt and later "play" those actions through the windows low level raw input - which is doable, but it will only work if your desktop windows are exactly on the same place on the screen. I think there are already some programs that allow you to record and play back mouse movement, clicking and keyboard input.
As for the ability to send actions directly to an application - that is very application specific, and for starters, has to be provided as an API by the manufacturer. Programs like word and excel provide such APIs, so do even more serious professional grade applications like Autodesk Maya, where you can directly use Python to write scripts with actions and execute them, much like you can do with Visual Basic in most MS products. In this case, you don't even need Qt or C++. Keep in mind not all applications provide "scripting" through their native C++ APIs, and the situation varies form application to application.
-
Sorry for my doubt question.
I mean a low level windows C APIs, I should handle raw user
input. I have the coordinate from raw user input time by time and want those coordinate for replacing mouse in real time.
For click and double click events, may be it needs a gesture recognition process in my program to replace mouseclickevents in Qt. Is it possible and I need your advice or direction.Thanks in advance :)
-
If your recorded actions are reproduced 1:1 they should have the same effect without the need of higher level functionality.
As I said earlier, such software already exists, "for example this one":http://www.softpedia.com/get/Others/Miscellaneous/Mouse-Recorder-Pro.shtml.
If you are going to use the raw input windows API, all you really could need Qt for is to do a user interface for your tool. Even though Qt's data types are similar to those of MS, since you are going to use their low level API you better use their data types which the API is designed to accept as parameters to avoid potential need of casting or conversion.
-
[quote author="utcenter" date="1358208187"]...
If you are going to use the raw input windows API, all you really could need Qt for is to do a user interface for your tool. ....[/quote]
Thanks for the link and reply. I already make a user interface for my new tool, the result is some QPoint data interactively when user move my tool. But in the application dialog, I cannot act like a mouse , e.g. replacing a mouse click event with my new method. Or move the item using QGraphicsItem::ItemIsSelectable, it only run using a real mouse.
So, I remember using Win32 API.
If you have any more suggestion or a tutorial link, it would be nice...
thanks -
Hi..
Is there any one can help, how to link my QPoint data from a new device interface to many Window application, so it can act like a mouse using Qt, for illustration like this product from Epson (a movie): http://www.epson.jp/products/offirio/emp/iu/