mouse click of Console in Windows OS always block my program ???

Posted on 2003-03-06
Medium Priority
Last Modified: 2010-04-01
My program using console to output some information.
It is runing on Windows OS.
each time I mouse click the console, it block the printf,
and my program stop there.
My question is how to avoid this blocking. In other words,
even I mouse click my console, it should still keep outputing new information to console. How should I do?
Thank you,
Question by:zyq105
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

Exceter earned 200 total points
ID: 8082112
You are saying that the mouse does not work in the console? If so, this could be the result of your DOS window being in QuickEdit mode. I.E. you can copy and insert text as you would in any other text window. This blocks the console from getting the mouse information. If this is not your problem please elaborate.


Author Comment

ID: 8082170
Thanks, This is not my problem. Let me clarify it,
My program keep printf some information out to console.
when somebody click the console, or highlight a block in the console, the printf will be blocked until I hit a key.
I want to keep outputing text information to console no matter what mouse event occurs. so what should I do?


Expert Comment

ID: 8085917
if you are using printf then your code is likely in c, in which case this is in the wrong section.

in c++, we use cout to output to console. see if you get the same result (i havent)

LVL 11

Expert Comment

ID: 9889634
No comment has been added lately, so it's time to clean up this TA. I will
leave a recommendation in the Cleanup topic area that this question is:

Answered: Points to Exceter: Grade A

Please leave any comments here within the next seven days.

Experts: Silence means you don't care. Grading recommendations are made in light
of the posted grading guidlines (http://www.experts-exchange.com/help.jsp#hi73).


-bcl (bcladd)
EE Cleanup Volunteer

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question