The following code inserts a message into the test log. The message text (first parameter) will state the current horizontal mouse coordinate. The attached remark (second parameter) will give the current date and time.
JavaScript, JScript
function TestProc()
{
Log.Message(Sys.Desktop.MouseX, aqDateTime.Now());
}
Python
def TestProc():
Log.Message(Sys.Desktop.MouseX, aqDateTime.Now())
VBScript
Sub TestProc
Log.Message Sys.Desktop.MouseX, aqDateTime.Now
End Sub
DelphiScript
procedure TestProc;
begin
Log.Message(Sys.Desktop.MouseX, aqDateTime.Now());
end;
C++Script, C#Script
function TestProc()
{
Log["Message"](Sys["Desktop"]["MouseX"], aqDateTime["Now"]());
}