|
以下に修正/追加。フォーカスされているペアだけ鳴らすためには、
soundWindow を 1(SOUND_WINDOW_FOCUESD) に。
wavファイルについては元記事参照。
#define SOUND_STATE_ALWAYS 0 // sound always
#define SOUND_STATE_ACTIVE 1 // sound when MT4 is foreground
#define SOUND_STATE_INACTIVE 2 // sound when MT4 is not foreground
#define SOUND_WINDOW_ALL 0 // sound
#define SOUND_WINDOW_FOCUSED 1 // sound when fx pair window is selected
extern string sHelp_soundState = "--- 0:Always 1:Active 2:Inactive";
extern int soundState = SOUND_STATE_ALWAYS; // sound state
extern string sHelp_soundWindow = "--- 0:All Window 1:Focused Window";
extern int soundWindow = SOUND_WINDOW_ALL; // sound window
|
|