SHOW:
|
|
- or go back to the newest paste.
| 1 | term.clear() | |
| 2 | term.setCursorPos(1,1) | |
| 3 | term.setTextColor(colors.yellow) | |
| 4 | print("CraftOS 1.5")
| |
| 5 | ||
| 6 | ||
| 7 | term.setTextColor(colors.yellow) | |
| 8 | term.setCursorPos(40,1) | |
| 9 | term.setBackgroundColor(colors.red) | |
| 10 | print("Create Setup")
| |
| 11 | ||
| 12 | sleep(1) | |
| 13 | term.setCursorPos(40,1) | |
| 14 | term.setBackgroundColor(colors.black) | |
| 15 | print(" ")
| |
| 16 | term.setCursorPos(41,1) | |
| 17 | term.setBackgroundColor(colors.red) | |
| 18 | print("Create Setu")
| |
| 19 | ||
| 20 | sleep(0.1) | |
| 21 | term.setCursorPos(40,1) | |
| 22 | term.setBackgroundColor(colors.black) | |
| 23 | print(" ")
| |
| 24 | term.setCursorPos(42,1) | |
| 25 | term.setBackgroundColor(colors.red) | |
| 26 | print("Create Set")
| |
| 27 | ||
| 28 | sleep(0.1) | |
| 29 | term.setCursorPos(40,1) | |
| 30 | term.setBackgroundColor(colors.black) | |
| 31 | print(" ")
| |
| 32 | term.setCursorPos(43,1) | |
| 33 | term.setBackgroundColor(colors.red) | |
| 34 | print("Create Se")
| |
| 35 | ||
| 36 | sleep(0.1) | |
| 37 | term.setCursorPos(40,1) | |
| 38 | term.setBackgroundColor(colors.black) | |
| 39 | print(" ")
| |
| 40 | term.setCursorPos(44,1) | |
| 41 | term.setBackgroundColor(colors.red) | |
| 42 | print("Create S")
| |
| 43 | ||
| 44 | sleep(0.1) | |
| 45 | term.setCursorPos(40,1) | |
| 46 | term.setBackgroundColor(colors.black) | |
| 47 | print(" ")
| |
| 48 | term.setCursorPos(45,1) | |
| 49 | term.setBackgroundColor(colors.red) | |
| 50 | print("Create ")
| |
| 51 | ||
| 52 | sleep(0.1) | |
| 53 | term.setCursorPos(40,1) | |
| 54 | term.setBackgroundColor(colors.black) | |
| 55 | print(" ")
| |
| 56 | term.setCursorPos(46,1) | |
| 57 | term.setBackgroundColor(colors.red) | |
| 58 | print("Create")
| |
| 59 | ||
| 60 | sleep(0.1) | |
| 61 | term.setCursorPos(40,1) | |
| 62 | term.setBackgroundColor(colors.black) | |
| 63 | print(" ")
| |
| 64 | term.setCursorPos(47,1) | |
| 65 | term.setBackgroundColor(colors.red) | |
| 66 | print("Creat")
| |
| 67 | ||
| 68 | sleep(0.1) | |
| 69 | term.setCursorPos(40,1) | |
| 70 | term.setBackgroundColor(colors.black) | |
| 71 | print(" ")
| |
| 72 | term.setCursorPos(48,1) | |
| 73 | term.setBackgroundColor(colors.red) | |
| 74 | print("Crea")
| |
| 75 | ||
| 76 | sleep(0.1) | |
| 77 | term.setCursorPos(40,1) | |
| 78 | term.setBackgroundColor(colors.black) | |
| 79 | print(" ")
| |
| 80 | term.setCursorPos(49,1) | |
| 81 | term.setBackgroundColor(colors.red) | |
| 82 | print("Cre")
| |
| 83 | ||
| 84 | sleep(0.1) | |
| 85 | term.setCursorPos(40,1) | |
| 86 | term.setBackgroundColor(colors.black) | |
| 87 | print(" ")
| |
| 88 | term.setCursorPos(50,1) | |
| 89 | term.setBackgroundColor(colors.red) | |
| 90 | print("Cr")
| |
| 91 | ||
| 92 | sleep(0.1) | |
| 93 | term.setCursorPos(40,1) | |
| 94 | term.setBackgroundColor(colors.black) | |
| 95 | print(" ")
| |
| 96 | term.setCursorPos(51,1) | |
| 97 | term.setBackgroundColor(colors.red) | |
| 98 | print("C")
| |
| 99 | ||
| 100 | ||
| 101 | ||
| 102 | term.setBackgroundColor(colors.red) | |
| 103 | term.setCursorPos(10,5) | |
| 104 | print(" ")
| |
| 105 | term.setCursorPos(30,5) | |
| 106 | print(" ")
| |
| 107 | term.setCursorPos(10,6) | |
| 108 | print(" ")
| |
| 109 | term.setCursorPos(10,7) | |
| 110 | print(" ")
| |
| 111 | term.setCursorPos(10,8) | |
| 112 | print(" ")
| |
| 113 | term.setCursorPos(10,9) | |
| 114 | print(" ")
| |
| 115 | term.setCursorPos(30,6) | |
| 116 | print(" ")
| |
| 117 | term.setCursorPos(30,7) | |
| 118 | print(" ")
| |
| 119 | term.setCursorPos(30,8) | |
| 120 | print(" ")
| |
| 121 | term.setCursorPos(30,9) | |
| 122 | print(" ")
| |
| 123 | ||
| 124 | term.setCursorPos(11,6) | |
| 125 | print("Create Setup")
| |
| 126 | ||
| 127 | term.setCursorPos(11,8) | |
| 128 | print(" [X]")
| |
| 129 | ||
| 130 | term.setCursorPos(31,6) | |
| 131 | print(" Terminate")
| |
| 132 | ||
| 133 | term.setCursorPos(31,8) | |
| 134 | print(" [X]")
| |
| 135 | ||
| 136 | ||
| 137 | function clearOption() | |
| 138 | term.setBackgroundColor(colors.black) | |
| 139 | term.setCursorPos(10,5) | |
| 140 | print(" ")
| |
| 141 | term.setCursorPos(30,5) | |
| 142 | print(" ")
| |
| 143 | term.setCursorPos(10,6) | |
| 144 | print(" ")
| |
| 145 | term.setCursorPos(10,7) | |
| 146 | print(" ")
| |
| 147 | term.setCursorPos(10,8) | |
| 148 | print(" ")
| |
| 149 | term.setCursorPos(10,9) | |
| 150 | print(" ")
| |
| 151 | term.setCursorPos(30,6) | |
| 152 | print(" ")
| |
| 153 | term.setCursorPos(30,7) | |
| 154 | print(" ")
| |
| 155 | term.setCursorPos(30,8) | |
| 156 | print(" ")
| |
| 157 | term.setCursorPos(30,9) | |
| 158 | print(" ")
| |
| 159 | end | |
| 160 | ||
| 161 | ||
| 162 | ||
| 163 | ||
| 164 | ||
| 165 | function openFile() | |
| 166 | sleep(0.1) | |
| 167 | term.setCursorPos(40,1) | |
| 168 | term.setBackgroundColor(colors.black) | |
| 169 | print(" ")
| |
| 170 | term.setCursorPos(50,1) | |
| 171 | term.setBackgroundColor(colors.red) | |
| 172 | print("Cr")
| |
| 173 | ||
| 174 | ||
| 175 | sleep(0.1) | |
| 176 | term.setCursorPos(40,1) | |
| 177 | term.setBackgroundColor(colors.black) | |
| 178 | print(" ")
| |
| 179 | term.setCursorPos(49,1) | |
| 180 | term.setBackgroundColor(colors.red) | |
| 181 | print("Cre")
| |
| 182 | ||
| 183 | sleep(0.1) | |
| 184 | term.setCursorPos(40,1) | |
| 185 | term.setBackgroundColor(colors.black) | |
| 186 | print(" ")
| |
| 187 | term.setCursorPos(48,1) | |
| 188 | term.setBackgroundColor(colors.red) | |
| 189 | print("Crea")
| |
| 190 | ||
| 191 | sleep(0.1) | |
| 192 | term.setCursorPos(40,1) | |
| 193 | term.setBackgroundColor(colors.black) | |
| 194 | print(" ")
| |
| 195 | term.setCursorPos(47,1) | |
| 196 | term.setBackgroundColor(colors.red) | |
| 197 | print("Creat")
| |
| 198 | ||
| 199 | sleep(0.1) | |
| 200 | term.setCursorPos(40,1) | |
| 201 | term.setBackgroundColor(colors.black) | |
| 202 | print(" ")
| |
| 203 | term.setCursorPos(46,1) | |
| 204 | term.setBackgroundColor(colors.red) | |
| 205 | print("Create")
| |
| 206 | ||
| 207 | ||
| 208 | sleep(0.1) | |
| 209 | term.setCursorPos(40,1) | |
| 210 | term.setBackgroundColor(colors.black) | |
| 211 | print(" ")
| |
| 212 | term.setCursorPos(45,1) | |
| 213 | term.setBackgroundColor(colors.red) | |
| 214 | print("Create ")
| |
| 215 | ||
| 216 | ||
| 217 | sleep(0.1) | |
| 218 | term.setCursorPos(40,1) | |
| 219 | term.setBackgroundColor(colors.black) | |
| 220 | print(" ")
| |
| 221 | term.setCursorPos(44,1) | |
| 222 | term.setBackgroundColor(colors.red) | |
| 223 | print("Create S")
| |
| 224 | ||
| 225 | ||
| 226 | sleep(0.1) | |
| 227 | term.setCursorPos(40,1) | |
| 228 | term.setBackgroundColor(colors.black) | |
| 229 | print(" ")
| |
| 230 | term.setCursorPos(43,1) | |
| 231 | term.setBackgroundColor(colors.red) | |
| 232 | print("Create Se")
| |
| 233 | ||
| 234 | ||
| 235 | sleep(0.1) | |
| 236 | term.setCursorPos(40,1) | |
| 237 | term.setBackgroundColor(colors.black) | |
| 238 | print(" ")
| |
| 239 | term.setCursorPos(42,1) | |
| 240 | term.setBackgroundColor(colors.red) | |
| 241 | print("Create Set")
| |
| 242 | ||
| 243 | sleep(0.1) | |
| 244 | term.setCursorPos(40,1) | |
| 245 | term.setBackgroundColor(colors.black) | |
| 246 | print(" ")
| |
| 247 | term.setCursorPos(41,1) | |
| 248 | term.setBackgroundColor(colors.red) | |
| 249 | print("Create Setu")
| |
| 250 | ||
| 251 | term.setTextColor(colors.yellow) | |
| 252 | term.setCursorPos(40,1) | |
| 253 | term.setBackgroundColor(colors.red) | |
| 254 | print("Create Setup")
| |
| 255 | ||
| 256 | ||
| 257 | sleep(0.1) | |
| 258 | term.setCursorPos(30,1) | |
| 259 | term.setBackgroundColor(colors.black) | |
| 260 | print(" ")
| |
| 261 | term.setCursorPos(38,1) | |
| 262 | term.setBackgroundColor(colors.red) | |
| 263 | print(" Create Setup ")
| |
| 264 | ||
| 265 | sleep(0.1) | |
| 266 | term.setCursorPos(30,1) | |
| 267 | term.setBackgroundColor(colors.black) | |
| 268 | print(" ")
| |
| 269 | term.setCursorPos(36,1) | |
| 270 | term.setBackgroundColor(colors.red) | |
| 271 | print(" Create Setup ")
| |
| 272 | ||
| 273 | ||
| 274 | sleep(0.1) | |
| 275 | term.setCursorPos(30,1) | |
| 276 | term.setBackgroundColor(colors.black) | |
| 277 | print(" ")
| |
| 278 | term.setCursorPos(34,1) | |
| 279 | term.setBackgroundColor(colors.red) | |
| 280 | print(" Create Setup ")
| |
| 281 | ||
| 282 | sleep(0.1) | |
| 283 | term.setCursorPos(30,1) | |
| 284 | term.setBackgroundColor(colors.black) | |
| 285 | print(" ")
| |
| 286 | term.setCursorPos(32,1) | |
| 287 | term.setBackgroundColor(colors.red) | |
| 288 | print(" Create Setup ")
| |
| 289 | ||
| 290 | ||
| 291 | sleep(0.1) | |
| 292 | term.setCursorPos(30,1) | |
| 293 | term.setBackgroundColor(colors.black) | |
| 294 | print(" ")
| |
| 295 | term.setCursorPos(30,1) | |
| 296 | term.setBackgroundColor(colors.red) | |
| 297 | print(" Create Setup ")
| |
| 298 | ||
| 299 | sleep(0.1) | |
| 300 | term.setCursorPos(15,1) | |
| 301 | term.setBackgroundColor(colors.black) | |
| 302 | print(" ")
| |
| 303 | term.setCursorPos(28,1) | |
| 304 | term.setBackgroundColor(colors.red) | |
| 305 | print(" Create Setup ")
| |
| 306 | ||
| 307 | ||
| 308 | ||
| 309 | ||
| 310 | ||
| 311 | ||
| 312 | ||
| 313 | term.setTextColor(colors.black) | |
| 314 | sleep(0.1) | |
| 315 | term.setCursorPos(28,2) | |
| 316 | term.setBackgroundColor(colors.white) | |
| 317 | print(" ")
| |
| 318 | ||
| 319 | ||
| 320 | sleep(0.1) | |
| 321 | term.setCursorPos(28,2) | |
| 322 | term.setBackgroundColor(colors.white) | |
| 323 | print(" ")
| |
| 324 | term.setCursorPos(28,3) | |
| 325 | print(" ")
| |
| 326 | ||
| 327 | ||
| 328 | ||
| 329 | ||
| 330 | ||
| 331 | ||
| 332 | ||
| 333 | ||
| 334 | ||
| 335 | sleep(0.1) | |
| 336 | term.setCursorPos(28,2) | |
| 337 | term.setBackgroundColor(colors.white) | |
| 338 | term.setBackgroundColor(colors.black) | |
| 339 | ||
| 340 | print(" ")
| |
| 341 | ||
| 342 | term.setBackgroundColor(colors.white) | |
| 343 | term.setCursorPos(28,3) | |
| 344 | print(" ")
| |
| 345 | term.setCursorPos(28,4) | |
| 346 | print(" ")
| |
| 347 | ||
| 348 | ||
| 349 | ||
| 350 | ||
| 351 | term.setBackgroundColor(colors.white) | |
| 352 | term.setCursorPos(28,2) | |
| 353 | print(" ")
| |
| 354 | term.setCursorPos(51,2) | |
| 355 | print(" ")
| |
| 356 | term.setBackgroundColor(colors.white) | |
| 357 | ||
| 358 | ||
| 359 | ||
| 360 | ||
| 361 | ||
| 362 | ||
| 363 | ||
| 364 | ||
| 365 | sleep(0.1) | |
| 366 | term.setCursorPos(28,2) | |
| 367 | term.setBackgroundColor(colors.white) | |
| 368 | print(" File Name: ")
| |
| 369 | term.setCursorPos(28,3) | |
| 370 | term.setBackgroundColor(colors.black) | |
| 371 | ||
| 372 | print(" ")
| |
| 373 | ||
| 374 | term.setBackgroundColor(colors.white) | |
| 375 | term.setCursorPos(28,4) | |
| 376 | print(" ")
| |
| 377 | term.setCursorPos(28,5) | |
| 378 | print(" ")
| |
| 379 | ||
| 380 | ||
| 381 | ||
| 382 | term.setBackgroundColor(colors.white) | |
| 383 | term.setCursorPos(28,3) | |
| 384 | print(" ")
| |
| 385 | term.setCursorPos(51,3) | |
| 386 | print(" ")
| |
| 387 | term.setBackgroundColor(colors.white) | |
| 388 | ||
| 389 | ||
| 390 | ||
| 391 | ||
| 392 | ||
| 393 | ||
| 394 | ||
| 395 | ||
| 396 | ||
| 397 | sleep(0.1) | |
| 398 | term.setCursorPos(28,2) | |
| 399 | term.setBackgroundColor(colors.white) | |
| 400 | print(" ")
| |
| 401 | term.setCursorPos(28,3) | |
| 402 | print(" File Name: ")
| |
| 403 | term.setCursorPos(28,4) | |
| 404 | ||
| 405 | ||
| 406 | term.setBackgroundColor(colors.black) | |
| 407 | ||
| 408 | print(" ")
| |
| 409 | ||
| 410 | term.setBackgroundColor(colors.white) | |
| 411 | term.setCursorPos(28,5) | |
| 412 | print(" ")
| |
| 413 | ||
| 414 | ||
| 415 | ||
| 416 | term.setBackgroundColor(colors.white) | |
| 417 | term.setCursorPos(28,4) | |
| 418 | print(" ")
| |
| 419 | term.setCursorPos(51,4) | |
| 420 | print(" ")
| |
| 421 | term.setBackgroundColor(colors.white) | |
| 422 | ||
| 423 | ||
| 424 | ||
| 425 | ||
| 426 | ||
| 427 | ||
| 428 | ||
| 429 | ||
| 430 | end | |
| 431 | ||
| 432 | ||
| 433 | ||
| 434 | ||
| 435 | ||
| 436 | ||
| 437 | ||
| 438 | ||
| 439 | ||
| 440 | ||
| 441 | ||
| 442 | ||
| 443 | ||
| 444 | -------------------------------------- Start menu --------------------------- | |
| 445 | ||
| 446 | function shellit() | |
| 447 | while true do | |
| 448 | local event, button, X, Y = os.pullEvent("mouse_click")
| |
| 449 | XY = X..","..Y | |
| 450 | ||
| 451 | if XY == "36,8" and button == 1 then | |
| 452 | clearOption() | |
| 453 | term.clear() | |
| 454 | term.setCursorPos(1,1) | |
| 455 | term.setTextColor(colors.yellow) | |
| 456 | print("CraftOS 1.5")
| |
| 457 | term.setCursorPos(1,2) | |
| 458 | write("")
| |
| 459 | function TNR() | |
| 460 | term.setTextColor(colors.white) | |
| 461 | TN = read() | |
| 462 | shell.run(TN) | |
| 463 | TNR() | |
| 464 | end | |
| 465 | TNR() | |
| 466 | end | |
| 467 | ||
| 468 | if XY == "51,1" and button == 1 then | |
| 469 | clearOption() | |
| 470 | openFile() | |
| 471 | break | |
| 472 | end | |
| 473 | ||
| 474 | if XY == "16,8" and button == 1 then | |
| 475 | clearOption() | |
| 476 | openFile() | |
| 477 | break | |
| 478 | end | |
| 479 | ||
| 480 | ||
| 481 | ||
| 482 | end | |
| 483 | ||
| 484 | end | |
| 485 | ||
| 486 | shellit() | |
| 487 | ||
| 488 | ||
| 489 | local function Setup() | |
| 490 | ||
| 491 | ||
| 492 | ||
| 493 | ||
| 494 | term.setBackgroundColor(colors.black) | |
| 495 | term.setTextColor(colors.yellow) | |
| 496 | term.setCursorPos(29,4) | |
| 497 | ||
| 498 | File = read() | |
| 499 | ||
| 500 | if File == "" then | |
| 501 | Setup() | |
| 502 | else | |
| 503 | term.setBackgroundColor(colors.white) | |
| 504 | term.setTextColor(colors.black) | |
| 505 | ||
| 506 | if fs.exists("disk") then
| |
| 507 | fs.makeDir("disk/Setup/")
| |
| 508 | ||
| 509 | ||
| 510 | term.setCursorPos(28,6) | |
| 511 | print(" ")
| |
| 512 | ||
| 513 | sleep(0.1) | |
| 514 | ||
| 515 | ||
| 516 | ||
| 517 | term.setCursorPos(28,7) | |
| 518 | print(" ")
| |
| 519 | ||
| 520 | ||
| 521 | ||
| 522 | sleep(0.1) | |
| 523 | term.setCursorPos(29,6) | |
| 524 | print("Advanced Computer?")
| |
| 525 | ||
| 526 | term.setCursorPos(28,8) | |
| 527 | print(" ")
| |
| 528 | ||
| 529 | ||
| 530 | sleep(0.1) | |
| 531 | ||
| 532 | ||
| 533 | term.setCursorPos(28,9) | |
| 534 | print(" ")
| |
| 535 | ||
| 536 | ||
| 537 | sleep(0.1) | |
| 538 | ||
| 539 | ||
| 540 | term.setBackgroundColor(colors.green) | |
| 541 | term.setTextColor(colors.yellow) | |
| 542 | term.setCursorPos(29,8) | |
| 543 | print("Yes")
| |
| 544 | ||
| 545 | term.setCursorPos(33,8) | |
| 546 | term.setBackgroundColor(colors.red) | |
| 547 | print("No")
| |
| 548 | term.setBackgroundColor(colors.white) | |
| 549 | else | |
| 550 | ||
| 551 | ||
| 552 | term.setCursorPos(28,6) | |
| 553 | print(" ")
| |
| 554 | ||
| 555 | sleep(0.1) | |
| 556 | ||
| 557 | ||
| 558 | ||
| 559 | term.setCursorPos(28,7) | |
| 560 | print(" ")
| |
| 561 | ||
| 562 | ||
| 563 | ||
| 564 | sleep(0.1) | |
| 565 | term.setCursorPos(29,6) | |
| 566 | print("Can't find Disk")
| |
| 567 | sleep(2) | |
| 568 | ||
| 569 | ||
| 570 | term.setCursorPos(28,6) | |
| 571 | print(" ")
| |
| 572 | ||
| 573 | sleep(0.1) | |
| 574 | term.setBackgroundColor(colors.black) | |
| 575 | term.setCursorPos(28,7) | |
| 576 | print(" ")
| |
| 577 | ||
| 578 | ||
| 579 | sleep(0.1) | |
| 580 | term.setBackgroundColor(colors.black) | |
| 581 | term.setCursorPos(28,6) | |
| 582 | print(" ")
| |
| 583 | term.setCursorPos(29,4) | |
| 584 | print(" ")
| |
| 585 | os.reboot() | |
| 586 | Setup() | |
| 587 | ||
| 588 | ||
| 589 | end | |
| 590 | ||
| 591 | ||
| 592 | end | |
| 593 | end | |
| 594 | Setup() | |
| 595 | ||
| 596 | ||
| 597 | ||
| 598 | ||
| 599 | ||
| 600 | ------------------------- Option Yes -------------------------------- | |
| 601 | ||
| 602 | function Loading() | |
| 603 | ||
| 604 | term.setBackgroundColor(colors.white) | |
| 605 | term.setCursorPos(28,8) | |
| 606 | print(" ")
| |
| 607 | ||
| 608 | sleep(0.1) | |
| 609 | ||
| 610 | term.setBackgroundColor(colors.black) | |
| 611 | term.setCursorPos(28,9) | |
| 612 | print(" ")
| |
| 613 | ||
| 614 | sleep(0.1) | |
| 615 | ||
| 616 | term.setBackgroundColor(colors.black) | |
| 617 | term.setCursorPos(28,8) | |
| 618 | print(" ")
| |
| 619 | ||
| 620 | sleep(0.1) | |
| 621 | ||
| 622 | term.setBackgroundColor(colors.white) | |
| 623 | term.setCursorPos(28,6) | |
| 624 | print(" ")
| |
| 625 | ||
| 626 | sleep(0.1) | |
| 627 | ||
| 628 | term.setTextColor(colors.black) | |
| 629 | if not http then | |
| 630 | term.setCursorPos(29,6) | |
| 631 | print("Http isnt enabled")
| |
| 632 | sleep(2) | |
| 633 | ||
| 634 | term.setCursorPos(28,6) | |
| 635 | print(" ")
| |
| 636 | ||
| 637 | sleep(0.1) | |
| 638 | term.setBackgroundColor(colors.black) | |
| 639 | term.setCursorPos(28,7) | |
| 640 | print(" ")
| |
| 641 | ||
| 642 | ||
| 643 | sleep(0.1) | |
| 644 | term.setBackgroundColor(colors.black) | |
| 645 | term.setCursorPos(28,6) | |
| 646 | print(" ")
| |
| 647 | term.setCursorPos(29,4) | |
| 648 | print(" ")
| |
| 649 | ||
| 650 | os.reboot() | |
| 651 | ||
| 652 | ||
| 653 | ||
| 654 | ||
| 655 | ||
| 656 | ||
| 657 | ||
| 658 | ||
| 659 | Setup() | |
| 660 | else | |
| 661 | ||
| 662 | if fs.exists("disk") then
| |
| 663 | term.setCursorPos(29,6) | |
| 664 | print("Create Setup...")
| |
| 665 | else | |
| 666 | term.setCursorPos(29,6) | |
| 667 | print("Can't find Disk")
| |
| 668 | sleep(2) | |
| 669 | ||
| 670 | ||
| 671 | term.setCursorPos(28,6) | |
| 672 | print(" ")
| |
| 673 | ||
| 674 | sleep(0.1) | |
| 675 | term.setBackgroundColor(colors.black) | |
| 676 | term.setCursorPos(28,7) | |
| 677 | print(" ")
| |
| 678 | ||
| 679 | ||
| 680 | sleep(0.1) | |
| 681 | term.setBackgroundColor(colors.black) | |
| 682 | term.setCursorPos(28,6) | |
| 683 | print(" ")
| |
| 684 | term.setCursorPos(29,4) | |
| 685 | print(" ")
| |
| 686 | os.reboot() | |
| 687 | Setup() | |
| 688 | end | |
| 689 | ||
| 690 | term.setCursorPos(1,10) | |
| 691 | term.setBackgroundColor(colors.black) | |
| 692 | term.setTextColor(colors.black) | |
| 693 | ||
| 694 | ||
| 695 | ||
| 696 | ||
| 697 | term.setBackgroundColor(colors.black) | |
| 698 | if fs.exists("disk/Setup") then
| |
| 699 | fs.delete("disk/startup")
| |
| 700 | fs.delete("disk/Setup/File")
| |
| 701 | end | |
| 702 | fs.makeDir("disk/Setup")
| |
| 703 | if fs.exists(""..File.."") then
| |
| 704 | fs.copy(""..File.."", "disk/Setup/File")
| |
| 705 | else | |
| 706 | term.setBackgroundColor(colors.white) | |
| 707 | term.setCursorPos(29,6) | |
| 708 | print(" ")
| |
| 709 | sleep(0.1) | |
| 710 | term.setCursorPos(29,6) | |
| 711 | print(""..File.."?")
| |
| 712 | sleep(2) | |
| 713 | ||
| 714 | term.setCursorPos(28,6) | |
| 715 | print(" ")
| |
| 716 | ||
| 717 | sleep(0.1) | |
| 718 | term.setBackgroundColor(colors.black) | |
| 719 | term.setCursorPos(28,7) | |
| 720 | print(" ")
| |
| 721 | ||
| 722 | ||
| 723 | sleep(0.1) | |
| 724 | term.setBackgroundColor(colors.black) | |
| 725 | term.setCursorPos(28,6) | |
| 726 | print(" ")
| |
| 727 | term.setCursorPos(29,4) | |
| 728 | print(" ")
| |
| 729 | ||
| 730 | os.reboot() | |
| 731 | Setup() | |
| 732 | ||
| 733 | ||
| 734 | ||
| 735 | ||
| 736 | ||
| 737 | ||
| 738 | ||
| 739 | end | |
| 740 | ||
| 741 | ||
| 742 | ||
| 743 | ||
| 744 | ||
| 745 | term.setBackgroundColor(colors.black) | |
| 746 | local PB = "pastebin get" | |
| 747 | term.setTextColor(colors.black) | |
| 748 | term.setCursorPos(1,10) | |
| 749 | if fs.exists("disk/startup") then
| |
| 750 | fs.delete("disk/startup") end
| |
| 751 | local startup = " sauhDdf4 disk/startup" | |
| 752 | shell.run(PB, (startup)) | |
| 753 | ||
| 754 | ||
| 755 | ||
| 756 | ||
| 757 | if fs.exists("disk/LaPC1") then
| |
| 758 | fs.delete("disk/LaPC1") end
| |
| 759 | local LaPC1 = " aUyLENah disk/LaPC1" | |
| 760 | shell.run(PB, (LaPC1)) | |
| 761 | ||
| 762 | ||
| 763 | if fs.exists("disk/LaPC2") then
| |
| 764 | fs.delete("disk/LaPC2") end
| |
| 765 | local LaPC2 = " aZm8S5ud disk/LaPC2" | |
| 766 | shell.run(PB, (LaPC2)) | |
| 767 | ||
| 768 | ||
| 769 | if fs.exists("disk/LaPC3") then
| |
| 770 | fs.delete("disk/LaPC3") end
| |
| 771 | local LaPC3 = " aZm8S5ud disk/LaPC3" | |
| 772 | shell.run(PB, (LaPC3)) | |
| 773 | ||
| 774 | if fs.exists("disk/LaPC") then
| |
| 775 | fs.delete("disk/LaPC2") end
| |
| 776 | local LaPC = " jxFjSEMY disk/LaPC" | |
| 777 | shell.run(PB, (LaPC)) | |
| 778 | term.setCursorPos(1,10) | |
| 779 | term.setBackgroundColor(colors.black) | |
| 780 | term.setTextColor(colors.black) | |
| 781 | print(" ")
| |
| 782 | term.setCursorPos(1,11) | |
| 783 | print(" ")
| |
| 784 | ||
| 785 | ||
| 786 | term.setBackgroundColor(colors.white) | |
| 787 | ||
| 788 | term.setCursorPos(29,6) | |
| 789 | print(" ")
| |
| 790 | sleep(0.1) | |
| 791 | term.setCursorPos(29,6) | |
| 792 | print("Finish!")
| |
| 793 | sleep(1) | |
| 794 | term.setCursorPos(1,39) | |
| 795 | term.setBackgroundColor(colors.black) | |
| 796 | shell.run("eject left")
| |
| 797 | shell.run("eject top")
| |
| 798 | shell.run("eject bottom")
| |
| 799 | shell.run("eject back")
| |
| 800 | shell.run("eject right")
| |
| 801 | shell.run("eject front")
| |
| 802 | term.clear() | |
| 803 | os.reboot() | |
| 804 | ||
| 805 | ||
| 806 | end | |
| 807 | end | |
| 808 | ||
| 809 | ||
| 810 | ||
| 811 | ||
| 812 | ||
| 813 | ||
| 814 | ||
| 815 | ||
| 816 | ||
| 817 | ||
| 818 | ||
| 819 | ||
| 820 | ------------------------- mouse_click --------------------------------- | |
| 821 | ||
| 822 | ||
| 823 | term.setBackgroundColor(colors.black) | |
| 824 | while true do | |
| 825 | local event, button, X, Y = os.pullEvent("mouse_click")
| |
| 826 | XY = X..","..Y | |
| 827 | ||
| 828 | term.setBackgroundColor(colors.black) | |
| 829 | ||
| 830 | ||
| 831 | ------------------------- Option No --------- Label 2 ----------------------- | |
| 832 | ||
| 833 | if XY == "34,8" and button == 1 then | |
| 834 | term.setBackgroundColor(colors.white) | |
| 835 | term.setCursorPos(28,8) | |
| 836 | print(" ")
| |
| 837 | ||
| 838 | sleep(0.1) | |
| 839 | ||
| 840 | term.setBackgroundColor(colors.black) | |
| 841 | term.setCursorPos(28,9) | |
| 842 | print(" ")
| |
| 843 | ||
| 844 | sleep(0.1) | |
| 845 | ||
| 846 | term.setBackgroundColor(colors.black) | |
| 847 | term.setCursorPos(28,8) | |
| 848 | print(" ")
| |
| 849 | ||
| 850 | sleep(0.1) | |
| 851 | ||
| 852 | term.setBackgroundColor(colors.white) | |
| 853 | term.setCursorPos(28,6) | |
| 854 | print(" ")
| |
| 855 | ||
| 856 | sleep(0.1) | |
| 857 | ||
| 858 | term.setTextColor(colors.black) | |
| 859 | if not http then | |
| 860 | term.setCursorPos(29,6) | |
| 861 | print("Http isnt enabled")
| |
| 862 | sleep(2) | |
| 863 | Setup() | |
| 864 | else | |
| 865 | ||
| 866 | if fs.exists("disk") then
| |
| 867 | term.setCursorPos(29,6) | |
| 868 | print("Create Setup...")
| |
| 869 | else | |
| 870 | term.setCursorPos(29,6) | |
| 871 | print("Can't find Disk")
| |
| 872 | sleep(2) | |
| 873 | ||
| 874 | ||
| 875 | term.setCursorPos(28,6) | |
| 876 | print(" ")
| |
| 877 | ||
| 878 | sleep(0.1) | |
| 879 | term.setBackgroundColor(colors.black) | |
| 880 | term.setCursorPos(28,7) | |
| 881 | print(" ")
| |
| 882 | ||
| 883 | ||
| 884 | sleep(0.1) | |
| 885 | term.setBackgroundColor(colors.black) | |
| 886 | term.setCursorPos(28,6) | |
| 887 | print(" ")
| |
| 888 | term.setCursorPos(29,4) | |
| 889 | print(" ")
| |
| 890 | os.reboot() | |
| 891 | Setup() | |
| 892 | end | |
| 893 | ||
| 894 | ||
| 895 | ||
| 896 | ||
| 897 | ||
| 898 | term.setCursorPos(29,6) | |
| 899 | print("Create Setup...")
| |
| 900 | ||
| 901 | ||
| 902 | ||
| 903 | term.setCursorPos(1,10) | |
| 904 | term.setBackgroundColor(colors.black) | |
| 905 | term.setTextColor(colors.black) | |
| 906 | ||
| 907 | ||
| 908 | ||
| 909 | ||
| 910 | term.setBackgroundColor(colors.black) | |
| 911 | if fs.exists("disk/Setup") then
| |
| 912 | fs.delete("disk/startup")
| |
| 913 | fs.delete("disk/Setup/File")
| |
| 914 | end | |
| 915 | fs.makeDir("disk/Setup")
| |
| 916 | if fs.exists(""..File.."") then
| |
| 917 | fs.copy(""..File.."", "disk/Setup/File")
| |
| 918 | else | |
| 919 | term.setBackgroundColor(colors.white) | |
| 920 | term.setCursorPos(29,6) | |
| 921 | print(" ")
| |
| 922 | sleep(0.1) | |
| 923 | term.setCursorPos(29,6) | |
| 924 | print(""..File.." does not exist!")
| |
| 925 | sleep(2) | |
| 926 | ||
| 927 | term.setCursorPos(28,6) | |
| 928 | print(" ")
| |
| 929 | ||
| 930 | sleep(0.1) | |
| 931 | term.setBackgroundColor(colors.black) | |
| 932 | term.setCursorPos(28,7) | |
| 933 | print(" ")
| |
| 934 | ||
| 935 | ||
| 936 | sleep(0.1) | |
| 937 | term.setBackgroundColor(colors.black) | |
| 938 | term.setCursorPos(28,6) | |
| 939 | print(" ")
| |
| 940 | term.setCursorPos(29,4) | |
| 941 | print(" ")
| |
| 942 | ||
| 943 | os.reboot() | |
| 944 | Setup() | |
| 945 | ||
| 946 | ||
| 947 | ||
| 948 | ||
| 949 | ||
| 950 | ||
| 951 | ||
| 952 | end | |
| 953 | ||
| 954 | ||
| 955 | ||
| 956 | ||
| 957 | ||
| 958 | term.setBackgroundColor(colors.black) | |
| 959 | local PB = "pastebin get" | |
| 960 | term.setTextColor(colors.black) | |
| 961 | term.setCursorPos(1,10) | |
| 962 | if fs.exists("disk/startup") then
| |
| 963 | fs.delete("disk/startup") end
| |
| 964 | local startup = " xSqbdKJr disk/startup" | |
| 965 | shell.run(PB, (startup)) | |
| 966 | ||
| 967 | ||
| 968 | ||
| 969 | if fs.exists("disk/LaPC1") then
| |
| 970 | fs.delete("disk/LaPC1") end
| |
| 971 | local LaPC1 = " aUyLENah disk/LaPC1" | |
| 972 | shell.run(PB, (LaPC1)) | |
| 973 | ||
| 974 | ||
| 975 | if fs.exists("disk/LaPC2") then
| |
| 976 | fs.delete("disk/LaPC2") end
| |
| 977 | local LaPC2 = " d5wS9YCE disk/LaPC2" | |
| 978 | shell.run(PB, (LaPC2)) | |
| 979 | ||
| 980 | ||
| 981 | if fs.exists("disk/LaPC3") then
| |
| 982 | fs.delete("disk/LaPC3") end
| |
| 983 | local LaPC3 = " aZm8S5ud disk/LaPC3" | |
| 984 | shell.run(PB, (LaPC3)) | |
| 985 | ||
| 986 | if fs.exists("disk/LaPC") then
| |
| 987 | fs.delete("disk/LaPC2") end
| |
| 988 | local LaPC = " jxFjSEMY disk/LaPC" | |
| 989 | shell.run(PB, (LaPC)) | |
| 990 | ||
| 991 | ||
| 992 | ||
| 993 | ||
| 994 | term.setCursorPos(1,10) | |
| 995 | term.setBackgroundColor(colors.black) | |
| 996 | term.setTextColor(colors.black) | |
| 997 | print(" ")
| |
| 998 | term.setCursorPos(1,11) | |
| 999 | print(" ")
| |
| 1000 | ||
| 1001 | ||
| 1002 | term.setBackgroundColor(colors.white) | |
| 1003 | ||
| 1004 | term.setCursorPos(29,6) | |
| 1005 | print(" ")
| |
| 1006 | sleep(0.1) | |
| 1007 | term.setCursorPos(29,6) | |
| 1008 | print("Finish!")
| |
| 1009 | sleep(1) | |
| 1010 | term.setCursorPos(1,39) | |
| 1011 | term.setBackgroundColor(colors.black) | |
| 1012 | shell.run("eject left")
| |
| 1013 | shell.run("eject top")
| |
| 1014 | shell.run("eject bottom")
| |
| 1015 | shell.run("eject back")
| |
| 1016 | shell.run("eject right")
| |
| 1017 | shell.run("eject front")
| |
| 1018 | term.clear() | |
| 1019 | os.reboot() | |
| 1020 | ||
| 1021 | ||
| 1022 | end | |
| 1023 | ||
| 1024 | end | |
| 1025 | ||
| 1026 | if XY == "29,8" and button == 1 then | |
| 1027 | Loading() | |
| 1028 | end | |
| 1029 | if XY == "30,8" and button == 1 then | |
| 1030 | Loading() | |
| 1031 | end | |
| 1032 | if XY == "31,8" and button == 1 then | |
| 1033 | Loading() | |
| 1034 | end | |
| 1035 | ||
| 1036 | ||
| 1037 | ------------------------- Option No --------- Label 1 ----------------------- | |
| 1038 | ||
| 1039 | if XY == "33,8" and button == 1 then | |
| 1040 | ||
| 1041 | term.setBackgroundColor(colors.white) | |
| 1042 | term.setCursorPos(28,8) | |
| 1043 | print(" ")
| |
| 1044 | ||
| 1045 | sleep(0.1) | |
| 1046 | ||
| 1047 | term.setBackgroundColor(colors.black) | |
| 1048 | term.setCursorPos(28,9) | |
| 1049 | print(" ")
| |
| 1050 | ||
| 1051 | sleep(0.1) | |
| 1052 | ||
| 1053 | term.setBackgroundColor(colors.black) | |
| 1054 | term.setCursorPos(28,8) | |
| 1055 | print(" ")
| |
| 1056 | ||
| 1057 | sleep(0.1) | |
| 1058 | ||
| 1059 | term.setBackgroundColor(colors.white) | |
| 1060 | term.setCursorPos(28,6) | |
| 1061 | print(" ")
| |
| 1062 | ||
| 1063 | sleep(0.1) | |
| 1064 | ||
| 1065 | term.setTextColor(colors.black) | |
| 1066 | if not http then | |
| 1067 | term.setCursorPos(29,6) | |
| 1068 | print("Http isnt enabled")
| |
| 1069 | sleep(2) | |
| 1070 | Setup() | |
| 1071 | else | |
| 1072 | ||
| 1073 | if fs.exists("disk") then
| |
| 1074 | term.setCursorPos(29,6) | |
| 1075 | print("Create Setup...")
| |
| 1076 | else | |
| 1077 | term.setCursorPos(29,6) | |
| 1078 | print("Can't find Disk")
| |
| 1079 | sleep(2) | |
| 1080 | ||
| 1081 | ||
| 1082 | term.setCursorPos(28,6) | |
| 1083 | print(" ")
| |
| 1084 | ||
| 1085 | sleep(0.1) | |
| 1086 | term.setBackgroundColor(colors.black) | |
| 1087 | term.setCursorPos(28,7) | |
| 1088 | print(" ")
| |
| 1089 | ||
| 1090 | ||
| 1091 | sleep(0.1) | |
| 1092 | term.setBackgroundColor(colors.black) | |
| 1093 | term.setCursorPos(28,6) | |
| 1094 | print(" ")
| |
| 1095 | term.setCursorPos(29,4) | |
| 1096 | print(" ")
| |
| 1097 | os.reboot() | |
| 1098 | Setup() | |
| 1099 | end | |
| 1100 | ||
| 1101 | ||
| 1102 | ||
| 1103 | ||
| 1104 | ||
| 1105 | term.setCursorPos(29,6) | |
| 1106 | print("Create Setup...")
| |
| 1107 | ||
| 1108 | ||
| 1109 | ||
| 1110 | term.setCursorPos(1,10) | |
| 1111 | term.setBackgroundColor(colors.black) | |
| 1112 | term.setTextColor(colors.black) | |
| 1113 | ||
| 1114 | ||
| 1115 | ||
| 1116 | ||
| 1117 | term.setBackgroundColor(colors.black) | |
| 1118 | if fs.exists("disk/Setup") then
| |
| 1119 | fs.delete("disk/startup")
| |
| 1120 | fs.delete("disk/Setup/File")
| |
| 1121 | end | |
| 1122 | fs.makeDir("disk/Setup")
| |
| 1123 | if fs.exists(""..File.."") then
| |
| 1124 | fs.copy(""..File.."", "disk/Setup/File")
| |
| 1125 | else | |
| 1126 | term.setBackgroundColor(colors.white) | |
| 1127 | term.setCursorPos(29,6) | |
| 1128 | print(" ")
| |
| 1129 | sleep(0.1) | |
| 1130 | term.setCursorPos(29,6) | |
| 1131 | print(""..File.." does not exist!")
| |
| 1132 | sleep(2) | |
| 1133 | ||
| 1134 | term.setCursorPos(28,6) | |
| 1135 | print(" ")
| |
| 1136 | ||
| 1137 | sleep(0.1) | |
| 1138 | term.setBackgroundColor(colors.black) | |
| 1139 | term.setCursorPos(28,7) | |
| 1140 | print(" ")
| |
| 1141 | ||
| 1142 | ||
| 1143 | sleep(0.1) | |
| 1144 | term.setBackgroundColor(colors.black) | |
| 1145 | term.setCursorPos(28,6) | |
| 1146 | print(" ")
| |
| 1147 | term.setCursorPos(29,4) | |
| 1148 | print(" ")
| |
| 1149 | ||
| 1150 | os.reboot() | |
| 1151 | Setup() | |
| 1152 | ||
| 1153 | ||
| 1154 | ||
| 1155 | ||
| 1156 | ||
| 1157 | ||
| 1158 | ||
| 1159 | end | |
| 1160 | ||
| 1161 | ||
| 1162 | ||
| 1163 | ||
| 1164 | ||
| 1165 | term.setBackgroundColor(colors.black) | |
| 1166 | local PB = "pastebin get" | |
| 1167 | term.setTextColor(colors.black) | |
| 1168 | term.setCursorPos(1,10) | |
| 1169 | if fs.exists("disk/startup") then
| |
| 1170 | fs.delete("disk/startup") end
| |
| 1171 | local startup = " xSqbdKJr disk/startup" | |
| 1172 | shell.run(PB, (startup)) | |
| 1173 | ||
| 1174 | ||
| 1175 | ||
| 1176 | ||
| 1177 | if fs.exists("disk/LaPC1") then
| |
| 1178 | fs.delete("disk/LaPC1") end
| |
| 1179 | local LaPC1 = " aUyLENah disk/LaPC1" | |
| 1180 | shell.run(PB, (LaPC1)) | |
| 1181 | ||
| 1182 | ||
| 1183 | if fs.exists("disk/LaPC2") then
| |
| 1184 | fs.delete("disk/LaPC2") end
| |
| 1185 | local LaPC2 = " d5wS9YCE disk/LaPC2" | |
| 1186 | shell.run(PB, (LaPC2)) | |
| 1187 | ||
| 1188 | ||
| 1189 | if fs.exists("disk/LaPC3") then
| |
| 1190 | fs.delete("disk/LaPC3") end
| |
| 1191 | local LaPC3 = " aZm8S5ud disk/LaPC3" | |
| 1192 | shell.run(PB, (LaPC3)) | |
| 1193 | ||
| 1194 | if fs.exists("disk/LaPC") then
| |
| 1195 | fs.delete("disk/LaPC2") end
| |
| 1196 | local LaPC = " jxFjSEMY disk/LaPC" | |
| 1197 | shell.run(PB, (LaPC)) | |
| 1198 | term.setCursorPos(1,10) | |
| 1199 | term.setBackgroundColor(colors.black) | |
| 1200 | term.setTextColor(colors.black) | |
| 1201 | print(" ")
| |
| 1202 | term.setCursorPos(1,11) | |
| 1203 | print(" ")
| |
| 1204 | ||
| 1205 | ||
| 1206 | term.setBackgroundColor(colors.white) | |
| 1207 | ||
| 1208 | term.setCursorPos(29,6) | |
| 1209 | print(" ")
| |
| 1210 | sleep(0.1) | |
| 1211 | term.setCursorPos(29,6) | |
| 1212 | print("Finish!")
| |
| 1213 | sleep(1) | |
| 1214 | term.setCursorPos(1,39) | |
| 1215 | term.setBackgroundColor(colors.black) | |
| 1216 | shell.run("eject left")
| |
| 1217 | shell.run("eject top")
| |
| 1218 | shell.run("eject bottom")
| |
| 1219 | shell.run("eject back")
| |
| 1220 | shell.run("eject right")
| |
| 1221 | shell.run("eject front")
| |
| 1222 | term.clear() | |
| 1223 | os.reboot() | |
| 1224 | ||
| 1225 | ||
| 1226 | end | |
| 1227 | end | |
| 1228 | ||
| 1229 | ||
| 1230 | ||
| 1231 | ||
| 1232 | ||
| 1233 | ||
| 1234 | ||
| 1235 | end | |
| 1236 | ||
| 1237 | ||
| 1238 | ||
| 1239 | ||
| 1240 | ||
| 1241 | ||
| 1242 | ||
| 1243 | ||
| 1244 | ||
| 1245 | ||
| 1246 | term.setBackgroundColor(colors.black) |