#include "apdefap.h"
#include "BST_HEADER.h"
int BST_COMMAND(DWORD dwCmd)
{
DWORD dwCmdOld;
dwCmdOld = GetTagDWordWait("OP_dwCmd");
dwCmdOld = dwCmd;
SetTagDWordWait("OP_dwCmd", dwCmdOld );
SetTagDWordWait(Tag Tag_Name, DWORD value);
return (0);
}
这段是全局脚本,对c语言是小白,哪位大神能帮我解释一下含义?
以下是点击按钮的c脚本:
#include "apdefap.h"
void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
#include "ACT_HEADER.h"
/***********************FOR OPERATION LOG********************************************/
long sMsgNr[1] = 1001;
//char szSource[256] = "";
char *szSource;
char szArea[256] = "";
char szEvent[256] = "Start Phase";
char szBatch[256] = "";
char szUnit[256] = "";
char szComment[256] = "szComment";
char *parentPicture;
/***********************FOR OPERATION LOG********************************************/
BST_COMMAND(ACT_PHASE_CMD_START);
/***********************FOR OPERATION LOG********************************************/
parentPicture = GetParentPicture(lpszPictureName);
szSource = GetPropChar(parentPicture ,"szTagName","Text"); //Return-Type: char*
ISALG_OperationLog(sMsgNr,szSource, szArea, szEvent, szBatch, szUnit, szComment);
/***********************FOR OPERATION LOG********************************************/
}
下位机程序是SCL,通过上位机对这个双字进行位操作,但是脚本部分看不出来哪里对这个双字进行位操作了。