Advertisement

Reading From the Screen (console)

Started by June 22, 2002 03:12 AM
4 comments, last by Pipo DeClown 22 years, 4 months ago
If you printed something on a screen, like ''a'', how can you read it?

SetConsoleCursorPosition( hOutput , coord );  // in this case coord is 0,0
cout<<''a'';
SetConsoleCursorPosition( hOutput , coord ); // still 0,0
 
Now what? Thnx in Adv. _________________________________________________________________________ Can someone be nice and help me on my way to be the next Hideo Kojima? Thought So...
ReadConsoleOutput perhaps? I dunno...
Arguing on the internet is like running in the Special Olympics: Even if you win, you're still retarded.[How To Ask Questions|STL Programmer's Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]
Advertisement
Console Functions

In addition to ReadConsoleOutput, take a look at ReadConsoleOutputCharacter.
THnx!
Now i have another Q.
I can assign a key to do that Reading.
But It doesnt do it automaticly when I put it in my code.
So....
Thnx in Adv again....

_________________________________________________________________________
Can someone be nice and help me on my way to be the next Hideo Kojima? Thought So...
quote: Original post by Pipo DeClown
THnx!
Now i have another Q.
I can assign a key to do that Reading.
But It doesnt do it automaticly when I put it in my code.
So....
Thnx in Adv again....
What? A question would be nice...
Arguing on the internet is like running in the Special Olympics: Even if you win, you're still retarded.[How To Ask Questions|STL Programmer's Guide|Bjarne FAQ|C++ FAQ Lite|C++ Reference|MSDN]
What I mean is: When I put it it my code,
So it will Compile it, it doesnt automaticly read the screen!
I did assign a key to it to check if it works,
but when I dont use a key (thats when i read the screen my self)
and I just put it in the code (thats when the program should read it) it doesnt read it!!


_________________________________________________________________________
Can someone be nice and help me on my way to be the next Hideo Kojima? Thought So...

This topic is closed to new replies.

Advertisement