BOOL GetMousePoint()
{
#pragram code("user32.dll");
BOOL GetCursorpos(LPPOINT lppoint);
#pragma code();
POINT point;
static int x, y;
GetCursorPos(&point);
if(x!=point.xy!=point.y)
{
x=point.x;
y=point.y;
return FALSE;
}
else
return TRUE;
}
*******************************************
此功能调用了WINDOWS的API函数获取鼠标(屏幕)位置。
例如:要求在鼠标10秒静止不动,将从任意画面返回到主画面A。
可在全局脚本中调用GetMousePoint();
如果返回值为真,OpenPicture("A画面");即可。
全局脚本触发时间定义为鼠标秒静止不动的时间,在此为10秒。
*************************************************************
*************************************************************
比每个页面、控件都做定时触发好吧!