ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class MouseStrategy.MouseStrategy(config)

I am the abstract parent class of all MouseStrategies. Combined with my subclasses I help implement the Strategy Pattern.

Parameters:

click(button, system)

Click the given button on the mouse on the remote system.

Parameters:

  • button: which button to click

  • system: a <no title> object controlling the remote system

move(x, y, system)

Move the mouse to the given target on the given system.

Parameters:

  • x: the target X coordinate

  • y: the target Y coordinate

  • system: a <no title> object controlling the remote system

MouseStrategy.get_mouse_strategy(config)

This is the Factory method to create instances of the MouseStrategy.

Parameters:

  • config: a <no title> object that includes information about the <no title> the current user will use

Return: an instance of <no title> of the appropriate class