How to hide the context on console

Class library usage, coding and language questions.
omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

How to hide the context on console

Post by omayer » Fri May 11, 2012 5:15 am

How to hide these lines
Console.jpg
Console.jpg (45.23 KiB) Viewed 1230 times
Here is the code i am using -

Code: Select all

        void ITestModule.Run()
        {
            Mouse.DefaultMoveTime = 300;
            Keyboard.DefaultKeyPressTime = 100;
            Delay.SpeedFactor = 1.0;
            
            
            Console.BackgroundColor = ConsoleColor.Green;
			Console.ForegroundColor = ConsoleColor.Blue;
			
            Console.WriteLine("Type Run Id then Enter:");
		 	string input = Console.ReadLine(); // Read string from console             
            Console.ResetColor();
            
 	        runControl.ReadRnControl(input);
 	        	
Tipu

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to hide the context on console

Post by Support Team » Mon May 14, 2012 1:45 pm

Hi,

the only way how you can change the output in the debug window is to set the Report.CurrentReportLevel to a higher value like "Error" because then the info messages won't be shown.

Regards,
Bernhard
Ranorex Support Team
.
Image

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: How to hide the context on console

Post by omayer » Wed May 16, 2012 5:02 pm

Thank you Bernhard, i did that but same result, finally created console apps that did the trick
Beginner
Tipu