Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Ta©ti Tac0Z

Members
  • Content Count

    143
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by Ta©ti Tac0Z

  1. I know how to get the file on the web but how do i "translate it" like so

    Input:

    <!DOCTYPE html><html><h1>hallo world</h1><code1>i am dum just so you know</code1></html> 

    output:

    hallo World

    i am dum just so you know

     

    say on a 2'st way:

    have someone made a lua code that Can run a html code

     

  2. ok again more dum question's

    1. How can i finde out what color code i need to use in 8 bit it is hard. I no that that you can just go to like type colorcode in google and that there is a lot of colorcode type's but in that website i was in. Was there the following type's:

    HEX, RGB, HSV, HSL and CMYK

     

    is there som of the colorcode's here that not take to long time to transform into 8-bit colorcode

     

    2. before i ask this question or before you read it. so i no that it is a bad question but. is there a way to transform html into a string like exeple:

     

    <!DOCTYPE html><html><h1>hallo world</h1><code1>i am dum

    just so you know</code1></html>

     

    and then i want the output to be:

    hallo world

    i am dum

    just so you know

     

    i know that the size of the text well be the same it was just an exeple.

    So is there someone who no that plese.

     

    because i hope i can do this is because in java you can just create a jlabel in a jframe and then just set the text to a html in the jlabel and the it well work like:

     

    JFrame frame = new JFrame("test frame")

    jLabel text = new JLabel("<!DOCTYPE html><html><h1>hallo world</h1><code1>i am dum just so you know</code1></html>")

    frame.add(text)

    and so on

     

     

     

     

     

  3. hallo i have a questions again:

     

    how can i run a function in a program. less say that there is a global function called "runfunction" that i can do like:

    local fun = "term.set Cursor(1,1)"

    runfunction( fun )

     

    again i no that there are not a global function called runfunction it was just to show what i mean

     

    so that i want to be happening what that two line's is that the function term.setCursor will be runned and there fore the cursor is now on col 1 line 1   

     

     

    is there somone who no a function to do that?

     

     

     

  4. omg it is working thank you to you boft og your to help me came home after work and it is working.  

     

    how the hell can i no that \n means newline unless two nice guys is telling me :)

     

    i have trying to find out how to do that is so long time but NOW THERE IS A NEW BAT qest:

     

    how can i write \ becuse i don't how to do it (i copy pastet it to write it here and in my owne computer in game)

  5. Ok thanks but so i need to write

    "/n" in that string like so

    data = io.open("/testfile", "w")

    data: write("here is Line 1 /n here is line 2 /n here is Line 3 /n")

    and then output: path /testfile:

    here is Line 1

    hare is Line 2

    hare is Line 3

     

    or is there a api for that or do i need to use the seek function fore that?

     

     

    and ps: i no that i just can't set the cursor

     

     

  6. hallo here i am again... i know dum question again!

    1. what to use filesystem.open or io.open i know that it is the same but what is the best one

     

    2. and how to pick a new line weren in write mode (what i mean is that how can i like write a thing on line 1 and then on line number 10 or 2 or whatever like in

    terminal like term.setCursor can i do that in io.open two in write mode)

     

    what i wil say is how to write new line or how to do newline

    i  also need to point out that i know there is i seek function but 1 i don't  no how to use it and 2 as i can understand do seek only work in read mode 

     

     

    i have played opencomputers in a long time and i still don't understand io.open and filesystem.open fully

     

     

    and yes i do know to the wiki and i do reading it some times so plese don't say that................. or write it :)

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.