Answer the question
In order to leave comments, you need to log in
How to create a program to call a procedure in a specific program by hotkey?
Actually, the question is. There is a program in Windows in which calls come in, and there is a button "answer" and "end". which can be called and executed using the command, the question is where to dig to find it?
I am not a developer, this topic is interesting to me.
Answer the question
In order to leave comments, you need to log in
I would advise you to throw in some simple shit using AutoIT, vTask Studio
,
or even the old, but beautiful Sign of Misery .
https://habr.com/post/158381/
With function addresses - yes and no. Because it can be a method, then you need to know the object for which it should be called + the rest of the input parameters and all that.
It's not so easy.
In your case, it will be easier to programmatically click the button. Via AutoIt or hardcore via winApi.
I would recommend looking towards emulating a mouse click on a hot key.
(look at this, for example, https://www.murgee.com/auto-mouse-click/ and similar projects)
What you suggest is too complicated / impossible. If, suddenly, there is some simple solution, it will be interesting for me to read.
Depends on the implementation of the program interface: if these buttons are implemented natively, they can be clicked programmatically via WinAPI; if some third-party library for implementing the interface was used, then it’s already more difficult - it’s possible that sending a click on the coordinates in the window by sending a message will work, if it doesn’t work, then there is an option with moving the cursor and clicking at a certain point. Both options are easily implemented by automation programs - nnCron and so on.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question