How to hide the context on console : Automation API

How to hide the context on console

Class library usage, coding and language questions.

How to hide the context on console

Postby omayer » Fri May 11, 2012 6:15 am

How to hide these lines
Console.jpg
Console.jpg (45.23 KiB) Viewed 395 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
omayer
 
Posts: 427
Joined: Thu Oct 28, 2010 7:14 pm

Re: How to hide the context on console

Postby Support Team » Mon May 14, 2012 2: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
User avatar
Support Team
Site Admin
 
Posts: 6838
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: How to hide the context on console

Postby omayer » Wed May 16, 2012 6:02 pm

Thank you Bernhard, i did that but same result, finally created console apps that did the trick
Beginner
Tipu
omayer
 
Posts: 427
Joined: Thu Oct 28, 2010 7:14 pm


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests