Playing Back Mouse Actions

This functionality is supported only if you are using the Classic Agent.

Under 32-bit Windows, the following methods take an optional BOOLEAN argument, bRawEvent, that specifies how mouse actions are played back:
AnyWin methods
  • Click
  • DoubleClick
  • MoveMouse
  • MultiClick
  • PressMouse
  • ReleaseMouse
Pushbutton method
  • Click

By default, bRawEvent is FALSE. When FALSE, Silk Test Classic uses the standard Windows messaging mechanism (journal playback) to perform actions. Usually this works fine. If your test plays back correctly, use the default.

There are times, however, when this doesn't work and your test won't play back correctly. In such situations, set bRawEvent to TRUE. When TRUE, Silk Test Classic uses a low-level mechanism to perform the actions. Operations involving mouse dragging are more likely to work correctly using the low-level mechanism. But this mechanism hasn't been tested as thoroughly as journal playback, so you should use it only when the default fails.

You can have all playback use the low-level mechanism by setting OPT_PLAY_MODE to Win32:
Agent.SetOption (OPT_PLAY_MODE, "Win32")

To turn this off, set OPT_PLAY_MODE to Normal:

Agent.SetOption (OPT_PLAY_MODE, "Normal")