P
P
Philip Shishkin2018-08-15 17:14:10
Programming
Philip Shishkin, 2018-08-15 17:14:10

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

4 answer(s)
I
ipswitch, 2018-08-15
@ipswitch

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/

G
GavriKos, 2018-08-15
@GavriKos

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
Interface, 2018-08-15
@Interface

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.

V
VoidVolker, 2018-08-15
@VoidVolker

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 question

Ask a Question

731 491 924 answers to any question