A
A
andreys752019-02-06 18:13:47
Arduino
andreys75, 2019-02-06 18:13:47

How to get the context of a running program?

Good afternoon!
There was a question how it is possible to receive a context of the started program on the computer?
This is necessary to obtain contest information and training materials on the system. I would like to get the maximum information about which window is active, which menu item is selected, etc.
I would be grateful for links where you can read about this. I need to understand how to do this in principle, I am a former programmer, and I can read technical articles and understand the code, but I still need the information for a high-level analysis of the complexity of the task.
Thank you very much !

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Rou1997, 2016-07-15
@Rou1997

У вас DTR не подключено, поэтому при компиляции нужно нажать RESET и удерживать до начала загрузки, светодиод L мигает - это нормально, это "дефолтный" скетч, если первый раз, то надо было с Arduino Uno начинать.

E
evgeniy_lm, 2016-07-15
@evgeniy_lm

У вас два варианта поведения.
1. Поменять переходник на нормальный, с DTR, например, такой
2. Отложить pro-mini до лучших времен и заняться изучением на UNO или Nano + макетная плата. Идеальный вариант купить набор для эксперементов типа такого
Вообще, прежде чем что либо покупать лучше изучить теорию, это позволит избежать массы ошибок и лишних трат. Что касается pro-mini то я их вообще по SPI программирую как обычный МК

V
VoidVolker, 2019-02-06
@VoidVolker

What exactly do you mean by context? Traditionally, the application launch context is the values ​​of environment variables. And the fact that which window is active is a property of the window itself and is available through the operating system API, which menu item is selected - these are also features of the window, if the window and menu are implemented by the system API, and if not by the system, then these parameters are available only from inside the application itself , but not outside (except for the graphical display of the application interface). I recommend reading about the structure of operating systems, how they work with resources and applications.

A
Arthur Mustafin, 2019-02-06
@virtual_hack2root

Use the Win32 API, Jeffrey Richter "Windows Programming"
aka: "Building Effective Win32 Applications for 64-bit Windows. 4th Edition"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question