-
Notifications
You must be signed in to change notification settings - Fork 0
CCWin API
8coon edited this page Aug 2, 2015
·
7 revisions
<style>.gray_text { color: gray; }</style>
void
tuple
function
method
term
bool
int
number
string
thread
table
array
color
message
version
effect
size
canvas
Widget
Container
Form
FormWidget
Label
Button
Edit
ScrollBar
Panel
ListView
PopupMenu
MenuBar
MenuBarItem
Brush
PaintBox
FileListView
os
os.shell
os.widgets
os.widgets.FileListView
os.widgets.PaintBox
os.widgets.MenuBar
os.widgets.PopupMenu
os.widgets.ListView
os.widgets.Panel
os.widgets.ScrollBar
os.widgets.Edit
os.widgets.Button
os.widgets.Label
Undefined
Back to top↑
LUA Tuple
Back to top↑
LUA Function
Back to top↑
LUA Function which expects an object to be passed as the first argument
Back to top↑
ComputerCraft Term object
Back to top↑
Boolean
Back to top↑
Integer
Back to top↑
Number (both integer and float values)
Back to top↑
String
Back to top↑
LUA Thread
Back to top↑
LUA Table
Back to top↑
LUA Arranged Table (with integer indexes starting from 1)
Back to top↑
Back to top↑
Message object
Back to top↑
Version object
Back to top↑
Effect objectcolor getbgcolor(effect self, effect self, int x, int y, color bgcolor, color forecolor, string char)
color getforecolor(effect self, effect self, int x, int y, color bgcolor, color forecolor, string char)
string getchar(effect self, effect self, int x, int y, color bgcolor, color forecolor, string char)
Back to top↑
Back to top↑
Canvas class.[broken] void render(canvas self, int left, int top, bool changeBlinking)
void clear(canvas self)
[broken] canvas duplicate(canvas self)
canvas scale(canvas self, int sizeX, int sizeY)
void write(canvas self, string str)
void fillrect(canvas self, int left, int top, int width, int height, color bgcolor)
[broken] void print(canvas self, string str)
void draw(canvas self, int left, int top, canvas graphic, void arg1, bool transparent, color transColor)
void point(canvas self, int x, int y, string char)
[broken] void scroll(canvas self, int n)
void setCursorPos(canvas self, int x, int y)
tuple getCursorPos(canvas self)
size getSize(canvas self)
Back to top↑
An abstract widget stub.void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
An abstract container stub.
canvas getCanvas(Container self)
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
Form class.
void show(Form self)
canvas getCanvas(Container self)
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
canvas getCanvas(Container self)
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
void reposition(ListView self, int height, int width)
void drawItem(ListView self, int index, bool selected)
int getMax(ListView self)
int getItemAt(ListView self, int x, int y)
canvas getCanvas(Container self)
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
canvas getCanvas(Container self)
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
canvas getCanvas(Container self)
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
Back to top↑
Back to top↑
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
canvas getIcon(FileListView self, table item)
void refreshList(FileListView self)
void navigate(FileListView self, string path, bool addToHistory, table _os)
void goBack(FileListView self)
void reposition(ListView self, int height, int width)
void drawItem(ListView self, int index, bool selected)
int getMax(ListView self)
int getItemAt(ListView self, int x, int y)
canvas getCanvas(Container self)
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
void refresh(Widget self)
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Back to top↑
void sendMessage(int hwnd, message message)
message getMessage(int hwnd)
tuple pullEvent(string filter)
tuple pullEventRaw()
void startTimer(int timeout, function onTimer)
array getValidHWNDList(bool onlyInTaskbar)
void setActiveProcess(int hwnd)
int getActiveProcess()
[deprecated] void redirectTerm(term obj)
[deprecated] void restoreTerm()
void killProcess(int hwnd)
array getRegistryBranches()
array getRegistryBranchKeys(string branch)
string getRegistryKeyValue(string branch, string key, string default)
void setRegistryKeyValue(string branch, string key, string value)
[deprecated] array listInstalledSoftware()
version getVersion()
string extractFilePath(string fileName)
string extractFileName(string fileName)
string extractRealFileName(string fileName)
void messageBox(string uType, string text, string caption, array buttons, string defText) - Blocks all threads in current application and shows message box. If you pass "input" in uType, an inputbox will be shown.
void hideMessageBox()
table getProcessInfo(int pid)
int getCurrentProcess()
string getSystemPath()
void copyToClipboard(void data, string dType)
void pasteFromClipboard(string dType)
void applyMagic(effect effect) - Apply new canvas effect to the whole screen. The previous effect will be overridden.
effect getMagic() - Get current screen canvas effect.
[broken] void setCaretPos(int x, int y)
[broken] void showCaret()
[broken] void hideCaret()
[broken] void setCaretColor(color color)
int findWindowByTitle(string title)
int findWindowByFileName(string fname)
[deprecated] void loadAPI(string arg1)
[deprecated] void unloadAPI(string arg1)
number time()
number clock()
[broken] int getETime()
int getProcessUsedMemory(int pid, int MAXDEPTH)
Back to top↑
int run(string command)
string expandEnvVar(string envvar)
void shutdown()
void restart(bool bootToShell)
Back to top↑
Back to top↑
FileListView Create(Container _parent, string name)
Back to top↑
PaintBox Create(Container _parent, string name)
Back to top↑
MenuBar Create(Container _parent, string name)
MenuBarItem CreateItem(string _name, method _onClick)
Back to top↑
ListView Create()
Back to top↑
ListView Create(Container _parent, string name)
Back to top↑
Panel Create(Container _parent, string name)
Back to top↑
ScrollBar Create(Container _parent, string name)
Back to top↑
Edit Create(Container _parent, string name)
Back to top↑
Button Create(Container _parent, string name)
Back to top↑
Label Create(Container _parent, string name)
Back to top↑
void
tuple
function
method
term
bool
int
number
string
thread
table
array
color
message
version
effect
size
canvas
Widget
Container
Form
FormWidget
Label
Button
Edit
ScrollBar
Panel
ListView
PopupMenu
MenuBar
MenuBarItem
Brush
PaintBox
FileListView
os
os.shell
os.widgets
os.widgets.FileListView
os.widgets.PaintBox
os.widgets.MenuBar
os.widgets.PopupMenu
os.widgets.ListView
os.widgets.Panel
os.widgets.ScrollBar
os.widgets.Edit
os.widgets.Button
os.widgets.Label
Undefined
Back to top↑
LUA Tuple
Back to top↑
LUA Function
Back to top↑
LUA Function which expects an object to be passed as the first argument
Inherited from: function
Inherited from: function
Back to top↑
ComputerCraft Term object
Back to top↑
Boolean
Back to top↑
Integer
Back to top↑
Number (both integer and float values)
Back to top↑
String
Back to top↑
LUA Thread
Back to top↑
LUA Table
Back to top↑
LUA Arranged Table (with integer indexes starting from 1)
Inherited from: table
Inherited from: table
Back to top↑
Inherited from: int
Inherited from: int
Back to top↑
Message object
string msg Values: char, key, mouse_click, mouse_drag, mouse_scroll, refresh
string char
int key
int button
int x
int y
int n
string char
int key
int button
int x
int y
int n
Inherited from: table
Inherited from: table
Back to top↑
Version object
Inherited from: table
Inherited from: table
Back to top↑
Effect object
Inherited from: table
color getforecolor(effect self, effect self, int x, int y, color bgcolor, color forecolor, string char)
string getchar(effect self, effect self, int x, int y, color bgcolor, color forecolor, string char)
Inherited from: table
Back to top↑
Inherited from: table
Inherited from: table
Back to top↑
Canvas class.
size size
size cursorPos
array data
color bgcolor
color forecolor
bool autoScroll
bool showCursor
bool cursorBlink
effect effect
size cursorPos
array data
color bgcolor
color forecolor
bool autoScroll
bool showCursor
bool cursorBlink
effect effect
Inherited from: table
void clear(canvas self)
[broken] canvas duplicate(canvas self)
canvas scale(canvas self, int sizeX, int sizeY)
void write(canvas self, string str)
void fillrect(canvas self, int left, int top, int width, int height, color bgcolor)
[broken] void print(canvas self, string str)
void draw(canvas self, int left, int top, canvas graphic, void arg1, bool transparent, color transColor)
void point(canvas self, int x, int y, string char)
[broken] void scroll(canvas self, int n)
void setCursorPos(canvas self, int x, int y)
tuple getCursorPos(canvas self)
size getSize(canvas self)
Inherited from: table
Back to top↑
An abstract widget stub.
Widget parent
int lastZOrder
int zOrder
string name
method onRefresh
method onClick
method onPopup
method onMouseClick
method onMouseDrag
method onKeyPress
int lastZOrder
int zOrder
string name
method onRefresh
method onClick
method onPopup
method onMouseClick
method onMouseDrag
method onKeyPress
Inherited from: table
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
An abstract container stub.
Inherited from: Widget
Widget parent
int lastZOrder
int zOrder
string name
method onRefresh
method onClick
method onPopup
method onMouseClick
method onMouseDrag
method onKeyPress
int lastZOrder
int zOrder
string name
method onRefresh
method onClick
method onPopup
method onMouseClick
method onMouseDrag
method onKeyPress
Inherited from: table
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
Form class.
Inherited from: Container
Inherited from: Container
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
Inherited from: Widget
Widget parent
int lastZOrder
int zOrder
string name
method onRefresh
method onClick
method onPopup
method onMouseClick
method onMouseDrag
method onKeyPress
int lastZOrder
int zOrder
string name
method onRefresh
method onClick
method onPopup
method onMouseClick
method onMouseDrag
method onKeyPress
Inherited from: table
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
Inherited from: FormWidget
Inherited from: FormWidget
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
Inherited from: FormWidget
Inherited from: FormWidget
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
Inherited from: FormWidget
Inherited from: FormWidget
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
Inherited from: FormWidget
Inherited from: FormWidget
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
Inherited from: Container
Inherited from: Widget
Widget parent
int lastZOrder
int zOrder
string name
method onRefresh
method onClick
method onPopup
method onMouseClick
method onMouseDrag
method onKeyPress
int lastZOrder
int zOrder
string name
method onRefresh
method onClick
method onPopup
method onMouseClick
method onMouseDrag
method onKeyPress
Inherited from: table
Inherited from: FormWidget
Inherited from: Container
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Inherited from: FormWidget
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
Inherited from: Panel
void drawItem(ListView self, int index, bool selected)
int getMax(ListView self)
int getItemAt(ListView self, int x, int y)
Inherited from: Panel
Inherited from: Container
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Inherited from: FormWidget
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
Inherited from: Container
Inherited from: Widget
Widget parent
int lastZOrder
int zOrder
string name
method onRefresh
method onClick
method onPopup
method onMouseClick
method onMouseDrag
method onKeyPress
int lastZOrder
int zOrder
string name
method onRefresh
method onClick
method onPopup
method onMouseClick
method onMouseDrag
method onKeyPress
Inherited from: table
Inherited from: FormWidget
Inherited from: Container
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Inherited from: FormWidget
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
Inherited from: Panel
Inherited from: Panel
Inherited from: Container
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Inherited from: FormWidget
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
Back to top↑
Back to top↑
Inherited from: FormWidget
Inherited from: FormWidget
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
string path
bool firstRefresh
array history
bool use_history
table icon_buffer
bool hide_lnk_ext
bool dirOnly
bool firstRefresh
array history
bool use_history
table icon_buffer
bool hide_lnk_ext
bool dirOnly
Inherited from: ListView
void refreshList(FileListView self)
void navigate(FileListView self, string path, bool addToHistory, table _os)
void goBack(FileListView self)
Inherited from: ListView
void drawItem(ListView self, int index, bool selected)
int getMax(ListView self)
int getItemAt(ListView self, int x, int y)
Inherited from: Panel
Inherited from: Container
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Inherited from: FormWidget
Inherited from: Widget
void mouseClick(Widget self, int button, int x, int y)
void mouseDrag(Widget self, int button, int x, int y)
void keyPress(Widget self, int key, string char)
Inherited from: table
Back to top↑
void sendMessage(int hwnd, message message)
message getMessage(int hwnd)
tuple pullEvent(string filter)
tuple pullEventRaw()
void startTimer(int timeout, function onTimer)
array getValidHWNDList(bool onlyInTaskbar)
void setActiveProcess(int hwnd)
int getActiveProcess()
void killProcess(int hwnd)
array getRegistryBranches()
array getRegistryBranchKeys(string branch)
string getRegistryKeyValue(string branch, string key, string default)
void setRegistryKeyValue(string branch, string key, string value)
version getVersion()
string extractFilePath(string fileName)
string extractFileName(string fileName)
string extractRealFileName(string fileName)
void messageBox(string uType, string text, string caption, array buttons, string defText) - Blocks all threads in current application and shows message box. If you pass "input" in uType, an inputbox will be shown.
void hideMessageBox()
table getProcessInfo(int pid)
int getCurrentProcess()
string getSystemPath()
void copyToClipboard(void data, string dType)
void pasteFromClipboard(string dType)
void applyMagic(effect effect) - Apply new canvas effect to the whole screen. The previous effect will be overridden.
effect getMagic() - Get current screen canvas effect.
[broken] void setCaretPos(int x, int y)
[broken] void showCaret()
[broken] void hideCaret()
[broken] void setCaretColor(color color)
int findWindowByTitle(string title)
int findWindowByFileName(string fname)
number time()
number clock()
[broken] int getETime()
int getProcessUsedMemory(int pid, int MAXDEPTH)
Back to top↑
int run(string command)
string expandEnvVar(string envvar)
void shutdown()
void restart(bool bootToShell)
Back to top↑
Back to top↑
FileListView Create(Container _parent, string name)
Back to top↑
PaintBox Create(Container _parent, string name)
Back to top↑
MenuBar Create(Container _parent, string name)
MenuBarItem CreateItem(string _name, method _onClick)
Back to top↑
ListView Create()
Back to top↑
ListView Create(Container _parent, string name)
Back to top↑
Panel Create(Container _parent, string name)
Back to top↑
ScrollBar Create(Container _parent, string name)
Back to top↑
Edit Create(Container _parent, string name)
Back to top↑
Button Create(Container _parent, string name)
Back to top↑
Label Create(Container _parent, string name)
Back to top↑