Jump to content




Exists a way to read the term?


  • You cannot reply to this topic
4 replies to this topic

#1 COOLGAMETUBE

  • Members
  • 49 posts
  • LocationGermany

Posted 08 September 2015 - 12:04 PM

I want to read the term table.

Example:

Term contains: picture + text.

Want to do: draw and remove things above it.

Way: Draw BG & Text --> Draw thing -| (loop)
|| |
/-\---------------------------------------|

anyway to read the term?

This woud be nice for an implementation

Edited by COOLGAMETUBE, 08 September 2015 - 12:05 PM.


#2 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 08 September 2015 - 12:10 PM

You cannot "read" what was already written on the computer's screen. But you can redirect to a custom buffer or window object, in which you'd then be able to get what's written on the screen. But the use cases of where you actually would need to read the screen are very little, and you're probably thinking about a bad solution. If you'd tell us why you need to do that, then we may suggest an easier and better way of solving your problem.

#3 COOLGAMETUBE

  • Members
  • 49 posts
  • LocationGermany

Posted 08 September 2015 - 12:13 PM

View PostMKlegoman357, on 08 September 2015 - 12:10 PM, said:

You cannot "read" what was already written on the computer's screen. But you can redirect to a custom buffer or window object, in which you'd then be able to get what's written on the screen. But the use cases of where you actually would need to read the screen are very little, and you're probably thinking about a bad solution. If you'd tell us why you need to do that, then we may suggest an easier and better way of solving your problem.

If i overwrite term.write() function 1 time in 1 script,
will be that change effect other script too?

#4 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 08 September 2015 - 12:15 PM

View PostCOOLGAMETUBE, on 08 September 2015 - 12:13 PM, said:

If i overwrite term.write() function 1 time in 1 script,
will be that change effect other script too?

Yes. Keep in mind you'd probably want to do this for all the term functions - setBackgroundColor, setTextColor, setCursorPos, clear, clearLine, etc.

#5 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 08 September 2015 - 12:16 PM

Don't overwrite any of the term functions, or you'll simply break the computer. Like I said, you could redirect (term.redirect) to a window or buffer object. To "read" the screen. I'm still interested to hear why you need this. I'm almost 100% certain that you're thinking about this the wrong way, and you'll only create more problems by doing it this way.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users