1. 讲解

这个脚本里面的内容其实很简单,实际的代码只有一行。

'执行相机校准
doCameraSetup 

实例文件中,这行代码的前面还有许多注释内容,翻译如下:

重要!

E-Prime中的显示器分辨率应当和实验的分辨率设置一致。如果您需要呈现图片文件,请将图片重新调整大小,与显示器分辨率尺寸一致。

在您的 E-Prime 程序中,您可以在下面的地方更改显示器分辨率:

“Edit -> Experiment->Devices->Display->Edit->Width and Height”

您可以通过下面的方法获取您显示器的实际分辨率:

“桌面 -> 右键 -> 显示设置 -> 分辨率”


2. 全部源代码

'Important! 

'The Windows screen resolution should be Set To the same As your actual experiment resolution. 
'If you need To present image files, please resize the images To match the experiment resolution.

'1. In your E-Prime project, the experiment resolution can be configured through 
'"Edit -> Experiment->Devices->Display->Edit->Width and Height" Of the display device.

'2. The screen resolution Of the monitor can be configured through 
'"Start -> Control Panel -> Display -> Settings" On Windows XP, 
'Or "Start -> Control Panel -> Appearance and Personalization -> Display -> Adjust screen resolution" 
'On Vista And Windows 7".

doCameraSetup ' perform camera setup

以上。