1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-29 04:22:16 -05:00

More manual stuff, just updated the rest of them using the new functions, also I think that having a pvtotal command would be nice.

Anyways, sorry if some are messed up, I did my best.


git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@518 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
Nava2 2010-02-04 05:50:51 +00:00
parent 5b2c6d8305
commit 352979fbf8

View File

@ -17,6 +17,7 @@
\newcommand{\pvtypel}[1]{{\color{typeGreen}{#1}}} \newcommand{\pvtypel}[1]{{\color{typeGreen}{#1}}}
\newcommand{\pvname}[1]{{\color{typeRed}{#1}}:} \newcommand{\pvname}[1]{{\color{typeRed}{#1}}:}
\newcommand{\mname}[1]{{\color{blue}{#1}}} \newcommand{\mname}[1]{{\color{blue}{#1}}}
\newcommand{\pvtotal}[2]{{\pvname{#1}} {\pvtype{#2}}} %this might be better?
\maketitle \maketitle
@ -135,14 +136,12 @@ TMousePress, which defines if the mouse button is to be down or up.
% TMousePress = (mouse_Down, mouse_Up); % TMousePress = (mouse_Down, mouse_Up);
\subsection{MoveMouse} \subsection{MoveMouse}
\textbf{procedure} {\color{blue}{MoveMouse}}({\color{typeRed} \pproc \mname{MoveMouse}(\textbf{in } \pvname{x, y} \pvtypel{Integer});
{in x, y: }}{\color{typeGreen}{Integer}});
MoveMouse moves the mouse pointer to the specified x and y coordinates. MoveMouse moves the mouse pointer to the specified x and y coordinates.
\subsection{GetMousePos} \subsection{GetMousePos}
\textbf{procedure} {\color{blue}{GetMousePos}}({\color{typeRed} \pproc \mname{GetMousePos}(\textbf{out } \pvname{x, y} \pvtypel{Integer});
{out x, y: }}{\color{typeGreen}{Integer}});
GetMousePos returns the current position of the mouse in \textbf{x} and GetMousePos returns the current position of the mouse in \textbf{x} and
\textbf{y}. \textbf{y}.
@ -156,18 +155,15 @@ coordinate. If the mouse if not at the given \textbf{x}, \textbf{y} yet, the mou
will be set to \textbf{x}, \textbf{y}. will be set to \textbf{x}, \textbf{y}.
\subsection{ReleaseMouse} \subsection{ReleaseMouse}
\textbf{procedure} {\color{blue}{ReleaseMouse}}({\color{typeRed} \pproc \mname{ReleaseMouse}(\pvname{x, y} \pvtype{Integer} \pvname{clickType} \pvtypel{TClickType});
{x, y: }}{\color{typeGreen}{Integer}}; {\color{typeRed}{clickType :}}
{\color{typeGreen}{TClickType}});
ReleaseMouse releases the given mouse button (clickType) at the specified \textbf{x}, \textbf{y} ReleaseMouse releases the given mouse button (clickType) at the specified \textbf{x}, \textbf{y}
coordinate. If the mouse if not at the given \textbf{x}, \textbf{y} yet, the mouse position coordinate. If the mouse if not at the given \textbf{x}, \textbf{y} yet, the mouse position
will be set to \textbf{x}, \textbf{y}. will be set to \textbf{x}, \textbf{y}.
\subsection{ClickMouse} \subsection{ClickMouse}
\textbf{procedure} {\color{blue}{ClickMouse}}({\color{typeRed} \pproc \mname{ClickMouse}(\pvname{x, y} \pvtype{Integer} \pvname{clickType}
{x, y: }}{\color{typeGreen}{Integer}}; {\color{typeRed}{clickType :}} \pvtypel{TClickType});
{\color{typeGreen}{TClickType}});
ClickMouse performs a click with the given mouse button (clickType) at the ClickMouse performs a click with the given mouse button (clickType) at the
specified x, y coordinate. specified x, y coordinate.
@ -365,8 +361,7 @@ Virtual Keys also work on non-Windows operating systems.
\subsection{KeyDown} \subsection{KeyDown}
\textbf{procedure} {\color{blue}{KeyDown}}({\color{typeRed} \pproc \mname{KeyDown}(\pvname{key} \pvtypel{Word});
{key: }}{\color{typeGreen}{Word}});
KeyDown sends a request to the Operating System to ``fake'' an event that KeyDown sends a request to the Operating System to ``fake'' an event that
causes the Key to be ``down''. causes the Key to be ``down''.
@ -378,8 +373,7 @@ Don't forget that certain keys may require that shift, or another key,
is down as well. is down as well.
\subsection{KeyUp} \subsection{KeyUp}
\textbf{procedure} {\color{blue}{KeyUp}}({\color{typeRed} \pproc \mname{KeyUp}(\pvname{key} \pvtypel{Word});
{key: }}{\color{typeGreen}{Word}});
KeyUp sends a request to the Operating System to ``fake'' an event that KeyUp sends a request to the Operating System to ``fake'' an event that
causes the Key to be ``up''. causes the Key to be ``up''.
@ -387,22 +381,19 @@ causes the Key to be ``up''.
\subsection{PressKey} \subsection{PressKey}
\textbf{procedure} {\color{blue}{PressKey}}({\color{typeRed} \pproc \mname{PressKey}(\pvname{key} \pvtypel{Word});
{key: }}{\color{typeGreen}{Word}});
PressKey combines KeyDown and KeyUp, to fake a key press. PressKey combines KeyDown and KeyUp, to fake a key press.
\subsection{SendKeys} \subsection{SendKeys}
\textbf{procedure} {\color{blue}{SendKEys}}({\color{typeRed} \pproc \mname{SendKeys}(\pvname{s} \pvtypel{String});
{s: }}{\color{typeGreen}{String}});
SendKeys takes a string \textbf{s}, and attempts to send it's complete contents to SendKeys takes a string \textbf{s}, and attempts to send it's complete contents to
the client. It currently only accepts characters ranging from ``A..z''. the client. It currently only accepts characters ranging from ``A..z''.
\subsection{IsKeyDown} \subsection{IsKeyDown}
\textbf{function} {\color{blue}{PressKey}}({\color{typeRed} \pfunc \mname{PressKey}(\pvname{key} \pvtypel{Word}): \pvtype{Boolean}
{key: }}{\color{typeGreen}{Word}}): {\color{typeGreen}{Boolean}};
IsKeyDown returns true if the given VK key is ``down''. IsKeyDown returns true if the given VK key is ``down''.
@ -421,9 +412,8 @@ result of IsKeyDown:
\subsection{FindColor} \subsection{FindColor}
\textbf{function} {\color{blue}{FindColor}}({\color{typeRed} \pfunc \mname{FindColor}}(\textbf{out} \pvname{x, y} \pvtype{Integer} \pvname{col, x1, y1, x2, y2}
{var x, y: }}{\color{typeGreen}{Integer}}; {\color{typeRed} \pvtypel{Integer}): \pvtype{Boolean}
{col, x1, y1, x2, y2: }}{\color{typeGreen}{Integer}}): {\color{typeGreen}{Boolean}};
FindColor returns true if the exact color given (col) is found in the box defined by x1, y1, x2, y2. FindColor returns true if the exact color given (col) is found in the box defined by x1, y1, x2, y2.
The point is returned in x and y. It searches from the top left to the bottom right and will stop The point is returned in x and y. It searches from the top left to the bottom right and will stop
@ -431,9 +421,8 @@ after matching a point.
\subsection{FindColorTolerance} \subsection{FindColorTolerance}
\textbf{function} {\color{blue}{FindColorTolerance}}({\color{typeRed} \pfunc \mname{FindColorTolerance}(\textbf{out} \pvname{x, y: } \pvtype{Integer}
{var x, y: }}{\color{typeGreen}{Integer}}; {\color{typeRed} \pvname{col, x1, y1, x2, y2, tol: }\pvtypel{Integer}): \pvtype{Boolean}
{col, x1, y1, x2, y2, tol: }}{\color{typeGreen}{Integer}}): {\color{typeGreen}{Boolean}};
FindColorTolerance returns true if a colour within the given tolerance range (tol) of the given color (col) FindColorTolerance returns true if a colour within the given tolerance range (tol) of the given color (col)
is found in the box defined by x1, y1, x2, y2. Only the first point is returned in x and y. is found in the box defined by x1, y1, x2, y2. Only the first point is returned in x and y.
@ -442,9 +431,8 @@ It searches from the top left to the bottom right and will stop after matching a
\subsection{FindColorsTolerance} \subsection{FindColorsTolerance}
\textbf{function} {\color{blue}{FindColorsTolerance}}({\color{typeRed} \pfunc \mname{FindColorsTolerance}( \textbf{out }\pvname{pts} \pvtype{TPointArray} \pvname
{var pts: }}{\color{typeGreen}{TPointArray}}; {\color{typeRed} {col, x1, y1, x2, y2, tol} \pvtypel{Integer}): \pvtype{Boolean}
{col, x1, y1, x2, y2, tol: }}{\color{typeGreen}{Integer}}): {\color{typeGreen}{Boolean}};
FindColorsTolerance returns true if at least one point was found. A point is found if it is within the FindColorsTolerance returns true if at least one point was found. A point is found if it is within the
given tolerance range (tol) of the given color (col) and inside the box defined by x1, y1, x2, y2. given tolerance range (tol) of the given color (col) and inside the box defined by x1, y1, x2, y2.
@ -493,7 +481,7 @@ Deprecated DTM type:
\subsection{FindDTM} \subsection{FindDTM}
\pfunc \mname{FindDTM}(\pvname{DTM: }\pvtype{Integer} \textbf{var} \pfunc \mname{FindDTM}(\pvname{DTM}\pvtype{Integer} \textbf{out}
\pvname{x, y} \pvtype{Integer} \pvname{x1, y1, x2, y2} \pvtypel{Integer}): \pvname{x, y} \pvtype{Integer} \pvname{x1, y1, x2, y2} \pvtypel{Integer}):
\pvtype{Boolean} \pvtype{Boolean}
@ -505,7 +493,7 @@ the first found DTM.
\subsection{FindDTMs} \subsection{FindDTMs}
\pfunc \mname{FindDTMs}(\pvname{DTM}\pvtype{Integer} \pvname{Points} \pfunc \mname{FindDTMs}(\pvname{DTM}\pvtype{Integer} \textbf{out} \pvname{Points}
\pvtype{TPointArray} \pvname{x1, y1, x2, y2} \pvtypel{Integer}): \pvtype{TPointArray} \pvname{x1, y1, x2, y2} \pvtypel{Integer}):
\pvtype{Boolean} \pvtype{Boolean}
@ -513,9 +501,9 @@ FindDTMs is like FindDTM, but it returns an array of \textbf{x} and \textbf{y},
\textbf{TPointArray} type. \textbf{TPointArray} type.
\subsection{FindDTMRotated} \subsection{FindDTMRotated}
\pfunc \mname{FindDTMRotated}(\pvname{DTM}\pvtype{Integer} \textbf{var} \pfunc \mname{FindDTMRotated}(\pvname{DTM}\pvtype{Integer} \textbf{out }
\pvname{x, y} \pvtype{Integer} \pvname{x1, y1, x2, y2} \pvtype{Integer} \pvname{x, y} \pvtype{Integer} \pvname{x1, y1, x2, y2} \pvtype{Integer}
\pvname{sAngle, eAngle, aStep} \pvtype{Extended} \textbf{var} \pvname{sAngle, eAngle, aStep} \pvtype{Extended} \textbf{out}
\pvname{aFound} \pvtypel{Extended}): \pvtype{Boolean} \pvname{aFound} \pvtypel{Extended}): \pvtype{Boolean}
FindDTMRotated is behaves like FindDTM. Only, it will turn the DTM between FindDTMRotated is behaves like FindDTM. Only, it will turn the DTM between
@ -525,7 +513,7 @@ at.
\subsection{FindDTMsRotated} \subsection{FindDTMsRotated}
\pfunc \mname{FindDTMRotated}(\pvname{DTM}\pvtype{Integer} \textbf{var} \pfunc \mname{FindDTMRotated}(\pvname{DTM}\pvtype{Integer} \textbf{var}
\pvname{Points} \pvtype{TPointArray} \pvname{x1, y1, x2, y2} \pvtype{Integer} \pvname{Points} \pvtype{TPointArray} \pvname{x1, y1, x2, y2} \pvtype{Integer}
\pvname{sAngle, eAngle, aStep} \pvtype{Extended} \textbf{var} \pvname{sAngle, eAngle, aStep} \pvtype{Extended} \textbf{out}
\pvname{aFound} \pvtypel{T2DExtendedArray}): \pvtype{Boolean} \pvname{aFound} \pvtypel{T2DExtendedArray}): \pvtype{Boolean}
FindDTMRotated is behaves like FindDTMs. Only, it will turn the DTM between FindDTMRotated is behaves like FindDTMs. Only, it will turn the DTM between
@ -651,7 +639,7 @@ Wizzyplugin stuff
Nothing here! Do you really think we document Easter eggs? Nothing here! Do you really think we document Easter eggs?
???? ????
Hakuna matata! HakunaMatata!