MacroMonkey.com - Home

Automation - Macro - Bot - Scripting system.



Console Support:

Support for interaction with the MM console window.


hWnd = console.GetWindow()Get console window handle.
console.Clear()Clear the console screen.
x,y = console.GetCursorPos()Get text cursor position.
console.SetCursorPos(x, y)Set text cursor position.
key = console.GetKey()Get first key from console keyboard input queue if exists.
console.KeyPause()Pause script execution until any key is pressed in the console window.
fore,back = console.GetColor()Get current text color.
console.SetColor(fore, back)Set current text color.


Text color defines:

console.BLACK

console.WHITE

console.RED

console.GREEN

console.BLUE

console.YELLOW

console.CYAN

console.MAGENTA

console.BRIGHTYELLOW

console.BRIGHTCYAN

console.BRIGHTMAGENTA

console.GREY

console.BRIGHTWHITE

console.BRIGHTRED

console.BRIGHTGREEN

console.BRIGHTBLUE


Example:

-- Set console text color to bright blue on black background

console.SetColor(console.BRIGHTBLUE, console.BLACK)