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
//+------------------------------------------------------------------+
//| SendWinMessage. mq4 |
//| Copyright © 2007, MetaQuotes Software Corp. |
//| https://www.metaquotes.net/ |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link "https://www.metaquotes.net/"
#include <WinUser32.mqh>
#import "WinUser32"
int GetActiveWindow();
#import
int errorcatch = 0;
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
{
//----
int result;
result = GetActiveWindow();
errorcatch = MessageBox("The result is: " + result);
//----
return(0);
}
//+------------------------------------------------------------------+
BW