Как программно нажимать сочетания клавиш в mql5? / How to programmatically press keyboard shortcuts in mql5?

 

Доброго времени суток! Нужно сделать так чтобы при получения сигнала нажималось сочетание клавиш shift+w или же shift+a, перерыл кучу сайтов и не нашел нормального способа.

Заранее благодарю за ответ!

Good day! It is necessary to make it so that when receiving a signal, the key combination shift + w or shift + a is pressed, rummaged through a bunch of sites and did not find a normal way.

Thank you in advance for your response!

 

Для начала можно тут посмотреть:

https://learn.microsoft.com/ru-ru/windows/win32/api/winuser/nf-winuser-sendinput

SendInput function (winuser.h) - Win32 apps
SendInput function (winuser.h) - Win32 apps
  • 2021.10.13
  • jwmsft
  • learn.microsoft.com
Synthesizes keystrokes, mouse motions, and button clicks.
 
Только учитывайте, что терминал MT5 64-хбитный. Я дал вам просто наводку