GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.waspscripts.com — Mouse Mouse¶Methods to interact with the mouse. To see a click heatmap at the end of your botting session add the following compiler directive before you include WaspLib: {$DEFINE WL_DEBUG_MOUSE}
EMouseDistribution¶EMouseDistribution = enum(DEFAULT, RANDOM, GAUSS, SKEWED, ROWP); The available distributions used to generate a point in a shape.
You can view what the distributions look like by running the Tool: Distribution Viewer:
TMouse¶Main record used to interact with the Mouse. Mouse.Setup¶procedure TMouse.Setup(); Initializes Note This is automatically called on the Mouse variable. Mouse variables and properties¶The following are some of the variables and properties that Mouse.Distribution¶TMouse.Distribution: EMouseDistribution; Variable used to set the type of click EMouseDistribution distrubution
you want the The default value is Read EMouseDistribution for more information about it. Mouse.MissChance¶TMouse.MissChance: Double; Variable used to control the miss chance of the Mouse.CanIdle¶TMouse.CanIdle: Boolean; Variable used to control the whether the Mouse.UseTeleport¶TMouse.UseTeleport: Boolean; Variable used to control the whether the Setting this to It will also make all of the Mouse.Move methods use Mouse.Teleport instead. Mouse.Wind¶property TMouse.Wind: Double; property TMouse.Wind(value: Double); Get/Set To understand what this does it might be worth reading BenLand’s blog about it as he is the original creator of the wind mouse algorithm. You can imagine Keep in mind that adjusting this without understanding what you are doing can
cause the mouse to do some very weird movements, even spin forever or until
Mouse.Speed¶property TMouse.Speed: Double; property TMouse.Speed(value: Double); Get/Set To understand what this does it might be worth reading BenLand’s blog about it as he is the original creator of the wind mouse algorithm. This should be self explanatory, basically speeds up the mouse.
The default value is Keep in mind that adjusting this without understanding what you are doing can
cause the mouse to do some very weird movements, even spin forever or until
Also, despite what value you add here, there’s 2 hard limits to how fast the mouse can travel:
Mouse.Timeout¶property TMouse.Timeout: Integer; property TMouse.Timeout(value: Integer); Get/Set This is basically a failsafe that stops the mouse from moving if it’s taking too long to reach it’s destination. Mouse.Gravity¶property TMouse.Gravity: Double; property TMouse.Gravity(value: Double); Get/Set To understand what this does it might be worth reading BenLand’s blog about it as he is the original creator of the wind mouse algorithm. You can imagine this as a force that pulls the mouse towards it’s destination.
The default value is Keep in mind that adjusting this without understanding what you are doing can
cause the mouse to do some very weird movements, even spin forever or until
Mouse.PressMin¶property TMouse.PressMin: Integer; property TMouse.PressMin(value: Integer); Get/Set Basically the minimum time the When clicking the mouse buttons the mouse button will be held a random time between TMouse.PressMin and TMouse.PressMax. Mouse.PressMax¶property TMouse.PressMax: Integer; property TMouse.PressMax(value: Integer); Get/Set Basically the maximum time the When clicking the mouse buttons the mouse button will be held a random time between TMouse.PressMin and TMouse.PressMax. Mouse.Teleport¶procedure TMouse.Teleport(coordinate: TPoint); Teleport the mouse to the desired Example: Mouse.Teleport(50, 50); Mouse.Position¶property TMouse.Position: TPoint; property TMouse.Position(value: TPoint); Used to return or set the mouse current position as a Example: WriteLn(Mouse.Position); Mouse.Position := [100, 100]; WriteLn(Mouse.Position); Mouse.Hold¶procedure TMouse.Hold(button: EMouseButton); Holds the desired mouse button down. The button will continue to be held down until Mouse.Release is called. Example: Mouse.Hold(EMouseButton.LEFT); // The mouse is now holding down left click. Mouse.Release¶procedure TMouse.Release(button: EMouseButton); Releases the desired mouse button which has been previously held. Example: Mouse.Release(EMouseButton.LEFT); Mouse.Idle¶procedure TMouse.Idle(); When IdleInterval is reached this is called. Override to change behavior.
Mouse.Miss¶function TMouse.Miss(P: TPoint): TPoint; “Misses” the destination point P. Will stop somewhere along the path or overshoot. Returns the position the mouse was moved to. This could automatically be called depending on Mouse.MissChance. Mouse.Move¶procedure TMouse.Move(destination: TPoint); procedure TMouse.Move(circle: TCircle; forcedMove: Boolean = False; distribution: EMouseDistribution = EMouseDistribution.DEFAULT); overload; procedure TMouse.Move(b: TBox; forcedMove: Boolean = False; distribution: EMouseDistribution = EMouseDistribution.DEFAULT); overload; procedure TMouse.Move(quad: TQuad; forcedMove: Boolean = False; distribution: EMouseDistribution = EMouseDistribution.DEFAULT); overload; Moves the mouse to the desired destination. This method has several overloads available that are self explanatory. Example: var p: TPoint; begin p := TPoint.Create(50, 50); Mouse.Move(p); // The mouse is now at 50,50 end; Mouse.Click¶procedure TMouse.Click(button: EMouseButton); procedure TMouse.Click(destination: TPoint; button: EMouseButton); overload; procedure TMouse.Click(circle: TCircle; button: EMouseButton; forcedMove: Boolean = False; distribution: EMouseDistribution = EMouseDistribution.DEFAULT); overload; procedure TMouse.Click(b: TBox; button: EMouseButton; forcedMove: Boolean = False; distribution: EMouseDistribution = EMouseDistribution.DEFAULT); overload; procedure TMouse.Click(quad: TQuad; button: EMouseButton; forcedMove: Boolean = False; distribution: EMouseDistribution = EMouseDistribution.DEFAULT); overload; Moves and clicks the mouse on the desired Example: var p: TPoint; begin p := TPoint.Create(50, 50); Mouse.Click(p, EMouseButton.LEFT); // Moves and clicks the mouse left button at 50,50 end; Mouse.Drag¶procedure TMouse.Drag(destination: TPoint; button: EMouseButton); procedure TMouse.Drag(circle: TCircle; button: EMouseButton); overload; procedure TMouse.Drag(box: TBox; button: EMouseButton); overload; procedure TMouse.Drag(quad: TQuad; button: EMouseButton); overload; Press and hold Mouse.Scroll¶procedure TMouse.Scroll(amount: Integer; down: Boolean); procedure TMouse.Scroll(pt: TPoint; amount: Integer; down: Boolean); procedure TMouse.Scroll(box: TBox; amount: Integer; down: Boolean); Scrolls the mouse X amount of times.
If a Example: var P: TPoint; begin P.X := 50; P.Y := 50; Mouse.Scroll(P, 5, True); // Scroll 5 times down at 50,50 Mouse.Scroll(P, 5, False); // Scroll 5 times up at 50,50 end; Mouse variable¶Global TMouse variable. ASyncMouse variable¶Global TASyncMouse variable. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |