Skip to content

Scripting software that parses instructions to perform automated tasks

Notifications You must be signed in to change notification settings

prathercc/mavtion

Repository files navigation

Mavtion

Mavtion is script software that reads from Mavtion Script Files (.mvsf) to perform automated tasks.

Load Scripts

Toggle Script Start/Stop

Writing Scripts

Scripts should look similar to the following code:

LOOP FOREVER // This line is required, use a non-negative integer or FOREVER as the value.
MOVEMOUSETO:BOXPOINT(218,246)->(234,253)
WAIT:BETWEEN(50,200)
CLICKRIGHTMOUSE
MOVEMOUSETO:BOXPOINT(174,292)->(237,294)
MOVEMOUSETO(174,294)
WAIT:BETWEEN(50,200)
CLICKLEFTMOUSE
WAIT:BETWEEN(4000,8000)
WAIT:4000
PRESSKEY:1
HOLDKEY:SPACE
RELEASEKEY:SPACE
HOLDLEFTMOUSE
RELEASELEFTMOUSE
SETMOUSETO:BOXPOINT(100,200)->(400,500)
SETMOUSETO(100,500)
TYPETEXT:testing123
DEBUG:This is a test message!
AFTER[0]:(1000,5000, 5) //After a time between 1000 and 5000 milliseconds, loop 5x.
_A[0]:WAIT:4000 // Instructions to be performed when the AFTER instruction runs.
_A[0]:WAIT:5000
AFTER[1]:(1000,5000, 5)
_A[1]:WAIT:4000
_A[1]:PRESSKEY:1

Instructions

  1. LOOP - Tells the program how many times the script will run before automatically stopping.

LOOP is required for each script file.

  1. WAIT:BETWEEN - Pauses the script for a random amount of time (in milliseconds) that is selected between the two interval parameter values.
  2. WAIT - Pauses the script for the specified amount of milliseconds.
  3. MOVEMOUSETO:BOXPOINT - Moves the mouse to a random position within a given box.

When selecting your box coordinates, measure from the top-left down to the bottom right.

  1. MOVEMOUSETO - Moves the mouse to the given position.
  2. SETMOUSETO:BOXPOINT - Sets the position of the mouse to a random position within a given box.
  3. SETMOUSETO - Sets the position of the mouse to the given position.
  4. CLICKRIGHTMOUSE - Simulates a right mouse click.
  5. CLICKLEFTMOUSE - Simulates a left mouse click.
  6. PRESSKEY - Simulates a key press.
  7. HOLDKEY - Holds a specified key down.
  8. RELEASEKEY - Releases a specified key.
  9. HOLDLEFTMOUSE - Holds the left mouse button down.
  10. RELEASELEFTMOUSE - Releases the left mouse button.
  11. AFTER[index] - After a time selected from a given interval (in milliseconds), perform instructions prefixed by _A[index]: .
  12. DEBUG - Debugs a message in the console area.
  13. TYPETEXT - Types an array of characters

Contributing

Feel free to create an Issue if you have any ideas for improvement or notice any bugs that need to addressed.

About

Scripting software that parses instructions to perform automated tasks

Topics

Resources

Stars

Watchers

Forks

Languages