Сам скрипт:
Spoiler
Show
//Insert the header starting here
#include "GlobalDefinitions.h"
void Trigger_Bits()
{
DWORD AlarmIncomming;
BOOL AlarmSoundStart;
BOOL AlarmSoundStop;
AlarmIncomming= GetTagDWord("Alarm_incomming");
if (AlarmIncomming >= 256)
{
AlarmSoundStart=TRUE;
AlarmSoundStop=FALSE;
}
else
{
AlarmSoundStop=TRUE;
AlarmSoundStart=FALSE;
}
if (AlarmSoundStart==TRUE)
{
StartProgram ("C:\\Program Files (x86)\\AIMP3\\AIMP3.exe","/PLAY",1,FALSE);
}
if (AlarmSoundStop==TRUE)
{
StartProgram ("C:\\Program Files (x86)\\AIMP3\\AIMP3.exe","/STOP",1,FALSE);
}
}
#include "GlobalDefinitions.h"
void Trigger_Bits()
{
DWORD AlarmIncomming;
BOOL AlarmSoundStart;
BOOL AlarmSoundStop;
AlarmIncomming= GetTagDWord("Alarm_incomming");
if (AlarmIncomming >= 256)
{
AlarmSoundStart=TRUE;
AlarmSoundStop=FALSE;
}
else
{
AlarmSoundStop=TRUE;
AlarmSoundStart=FALSE;
}
if (AlarmSoundStart==TRUE)
{
StartProgram ("C:\\Program Files (x86)\\AIMP3\\AIMP3.exe","/PLAY",1,FALSE);
}
if (AlarmSoundStop==TRUE)
{
StartProgram ("C:\\Program Files (x86)\\AIMP3\\AIMP3.exe","/STOP",1,FALSE);
}
}