(http://www.computerc...__fromsearch__1)
(Yes, that program is pretty nooby XD, but it was my first program and I had 0 experience)
This is a complete remake but much better.
Download
v0.3
pastebin get 5Gv3LK53 winos
v0.4 (BETA, ONLY FOR PROGRAM DEVELOPERS)
Program is broken…
Images
Spoiler
Other stuff:
— Credits: —
— Made by ComputerCraftFan11 (IGN: xXm0dzXx)
— Please do not steal without giving credits
— Functions:
— getX() returns the cursor's X
— getY() returns the cursor's Y
— isAt(x, y) returns true if the cursor is at the x, y
— newButton(x, y, title, programname, programpath)
— newLine(x, y, title)
— changeCursor(title)
— FAQ —
— How to add a new program ?
— New programs are added automatically if they are in windows/programs/start
— How to add a new shortcut/program on the desktop ?
— Desktop programs are stored in windows/programs
— I made a folder and its not showing up, why ?
— Only files show up, folders do not. To make a folder you'll have to manually make a program that opens the folder or you will have to wait.
— How do I contact you ?
— My In-Game-Name is xXm0dzXx, or you can contact my forums accounts:
— Computercraft.info: ComputerCraftFan11
— minecraftforums.net: ComputerCraftFan1
Example programs and explanations using the WinOS Api
The WinOS API is built into the WinOS (don't use os.loadAPI)
Here are some examples:
getX() returns the cursor's X
getY() returns the cursor's Y
isAt(1, 1)returns true if the cursor is at the 1, 1
newButton(1, 1, "click to shutdown", "shutdown", "rom/programs/")will make a button saying "click to shutdown" and will run "shutdown" in "rom/programs/*"
newLine(1, 1, "hl")compacts print and term.setcursorpos(), it will print "hl" at the coords 1,1 (changing "hl" to "stretch" will make a line with "-" 50 times)
changeCursor("pie")will make ur cursor "pie" instead of ">"
moveTo(1, 1)will move the cursor to 1,1
NEW newFrame(5,5,5,5)will print (x, y, length, width) (Not exact):The length is actually 1+ the one you selected+----+ | | | | | | | | +----+
The width is actually 1+ the one you selected too
NEW winRead(5,5)will make a read() at 5,5 (this one is only on 0.4+ and is very buggy, replace all read() functions with this, returns the history when pressing "enter"
Here is a program that will make ur cursor a "I" when selected (can be used when typing when added)
newLine(5,5, "T")
if isAt(5, 5) then
changeCursor("I")
end
Here is a program that makes ur cursor move to 1,1 and makes it go to it's default icon when you go to the "Reset Cursor"
newLine(5,5, "Reset Cursor")
if isAt(5, 5) then
moveTo(1,1)
changeCursor(">")
end
Coming soon
*Adding folders to be detectable
*Clock
*More functions
*MULTITASKING!!! :)/>/>
Known bugs
- If you have to much programs in windows/programs or windows/programs/start, it will go off the screen
Spoiler
noneSubmit a program like this:
Program name:
Program Code:
Program Desc/Info: