DrBeardface: I'm fairly sure that the HEX codes for the keys are correct,
Except you are not sending hex codes but integers.keybd_event(12, 0, 0, 0); // ALT down keybd_event(52, 0, 0, 0); // R down keybd_event(52, 0, 2, 0); // R up keybd_event(12, 0, 2, 0); // ALT up
#define VK_MENU 0x12 // ALT key #define VK_R 0x52 // R keySee WinUser32.mqh at Free download of the 'Programmatic modification of Tester "From:" and "To:" fields with user32.dll' script by 'mfurlend' for MetaTrader 4 in the MQL5 Code Base
whroeder1:
Except you are not sending hex codes but integers.
See WinUser32.mqh at Free download of the 'Programmatic modification of Tester "From:" and "To:" fields with user32.dll' script by 'mfurlend' for MetaTrader 4 in the MQL5 Code Base
Perfect as always. Thanks!!
Except you are not sending hex codes but integers.
See WinUser32.mqh at Free download of the 'Programmatic modification of Tester "From:" and "To:" fields with user32.dll' script by 'mfurlend' for MetaTrader 4 in the MQL5 Code Base
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi everyone,
I am trying to get my EA to send the key command "ALT-R" (Tile chart windows) periodically. I'm using the following code.
It's not working as it should. I'm fairly sure that the HEX codes for the keys are correct, but for some reason it generates a "4" instead when the cursor is somewhere that allows text input. Any ideas?