

This DLL will most likely not work anymore. It will not be updated.
Download: UpUrLoad
For the example, I have a simple TUI interface. Three clickable buttons that execute the specified code. Press Alt + Enter in the console for "fullscreen".
Manual
System Variables:
- global.con_x
The mouse position in the window, from 0 to 79. Updated when con_process is called and a mouse event is in queue. Hint: The cursor position is not based on pixels, but character cells. - global.con_y
The mouse position in the window, from 0 to 24. Updated when con_process is called and a mouse event is in queue. Hint: The cursor position is not based on pixels, but character cells.
- con_start(animation);
Initialize the DLL for use, must be called before any other functions. If animation is true, automatic scrolling and wrapping will be disabled. - con_end();
Free the DLL, please call this when done, it's best for you and the users. - con_stitle(title);
Sets the console's caption to title. - con_write(str);
Writes str to the console window. Scrolls and wraps automatically. - con_read();
Reads a string from the console, returns what was entered. Warning: This will freeze the game until it returns. - con_clear();
Clear the console window. - con_spos(x, y);
Set the cursor position to x,y. Written text is entered at this position. Not to be confused with the mouse position. - con_gcurx();
Get the current x value of the cursor. - con_gcury();
Get the current y value of the cursor. - con_scol(col);
Sets the foreground and background color for text to col. These colors are not based on RGB, they are 4-bit colors. Some values are defined in the constants of Merge.gmk. - con_sevents(key, mouse);
Set the callback scripts for keyboard and mouse events, use -1 for none. For events to be used, events must be processed. These scripts are only executed if you process events. - con_process();
Process events. Calls the set scripts if needed. Warning: Using this will freeze the game, it does redraw if the console window has focus.
- Keyboard Event Arguments:
- 0: True if key was pressed, false if released.
- 1: ASCII character, use chr() to create a string.
- 2: dwControlKeyState
- 3: Virtual Key Code
- Mouse Event Arguments:
Edited by TheMagicNumber, 04 September 2011 - 11:08 PM.