This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ComputerCraftFan11's profile picture

[1.31+] [v0.4] WinOS - Remade [OS&API] [Now with frames!]

Started by ComputerCraftFan11, 05 April 2012 - 03:36 AM
ComputerCraftFan11 #1
Posted 05 April 2012 - 05:36 AM
My first program was a windows OS along time ago with a few print functions.
(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)
pastebin get Qfv13gyS winos
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
User submissions/programs
Spoilernone

Submit a program like this:
Program name:
Program Code:
Program Desc/Info:
ComputerCraftFan11 #2
Posted 05 April 2012 - 05:40 AM
Oops, i forgot a built in file editor

Adding*

Also, Update:

Added moveTo(x, y) to move the cursor
djblocksaway #3
Posted 05 April 2012 - 12:14 PM
This is amazing keep up the good work Computercraftfan11 a.k.a xXm0dzXx :)/>/>
ComputerCraftFan11 #4
Posted 05 April 2012 - 05:49 PM
This is amazing keep up the good work Computercraftfan11 a.k.a xXm0dzXx :)/>/>

Thanks, I'm adding Windows right now that look like this:

+--[Title]--x
|                |
|                |
|                |
+------------+

And resizes itself
Wolvan #5
Posted 05 April 2012 - 09:18 PM
You can add for example my Mass Burning Tool as a burner program or my keycard program for developers
ComputerCraftFan11 #6
Posted 06 April 2012 - 02:15 AM
You can add for example my Mass Burning Tool as a burner program or my keycard program for developers

It would automatically get added if you put it in windows/programs/start/
ComputerCraftFan11 #7
Posted 06 April 2012 - 05:16 AM
This is amazing keep up the good work Computercraftfan11 a.k.a xXm0dzXx :D/>/>

Thanks, I'm adding Windows right now that look like this:

+--[Title]--x
|				|
|				|
|				|
+------------+

And resizes itself

Added!

EDIT:
forgot the X button :)/>/>
ComputerCraftFan11 #8
Posted 06 April 2012 - 06:41 AM
Hey everyone, I added a developer version with winRead(x,y)

Replace all your "read()" functions with this when making a program because "read()" glitches winOS
Wolvan #9
Posted 06 April 2012 - 09:53 AM
You can add for example my Mass Burning Tool as a burner program or my keycard program for developers

It would automatically get added if you put it in windows/programs/start/
No I meant so that it is automatically installed for everyone! It is really useful and every Windows (WinOS) needs a burning program.
And for login screens… You can use my simple login API
ComputerCraftFan11 #10
Posted 06 April 2012 - 06:19 PM
You can add for example my Mass Burning Tool as a burner program or my keycard program for developers

It would automatically get added if you put it in windows/programs/start/
No I meant so that it is automatically installed for everyone! It is really useful and every Windows (WinOS) needs a burning program.
And for login screens… You can use my simple login API

I've been thinking of a login with the username is a folder in windows/users/* and the pass is inside, and each user has their own programs in windows/users/programs
Noodle #11
Posted 06 April 2012 - 11:00 PM
Anyone got pics?
Wolvan #12
Posted 07 April 2012 - 12:46 AM
I've been thinking of a login with the username is a folder in windows/users/* and the pass is inside, and each user has their own programs in windows/users/programs
Possible! You can edit the API to suit your needs. Was this proper english? Who cares I'm german
TehSomeLuigi #13
Posted 08 April 2012 - 02:07 PM
Looking forward to some features of this.

Good luck with it (especially multitasking!)
ComputerCraftFan11 #14
Posted 16 June 2012 - 06:50 AM
Ah, I just got a message about this. Forgot about this program.

*Sorry about the huge bump*

This program was abandoned for quite a while, i'll see if I can get back to it.
wonderdude #15
Posted 04 August 2012 - 07:59 PM
This is AMAZING. i hope you will update it with the features you made on DelOS :P/>/>?
lord_darkis #16
Posted 29 August 2012 - 01:50 AM
So wait… How do install this? or better yet even download it?
nutcase84 #17
Posted 22 December 2012 - 02:56 PM
WHY DON'T U UPDATE?! COLOR????!!!
ComputerCraftFan11 #18
Posted 22 December 2012 - 04:54 PM
WHY DON'T U UPDATE?! COLOR????!!!

I replaced it with my new OS CraftOS 2.0 (Don't use it now cuz it doesn't have as much features)