Separate layers for printing in console output window - msbuild

I'm developing a custom logger for MSBuild (C# project) to track the progress of building a big solution file. I want to show the progress in a fixed position in the command window (say top-left), while normal build messages are being printed out. Ideally, this can be accomplished by printing the progress in a fixed position, on a 'transparent' layer which sits on top of msbuild messages layer. However, my brief search didn't result in anything similar to what I wanted.
Does anyone have a suggestion/workaround for this?
Thanks

I've done something similar by programmatically creating a simple WinForm with a ProgressBar, i.e. when building locally (Environment.UserInteractive) show the progress bar (STAThread) otherwise just log normally, e.g. when built by CI.

Related

App modeller, Identify button not showing up in blueprism spying

I am creating calculator VBO in blueprism object studio.
In application modeller I gave calc.exe path and able to launch calculator, but I am not getting identify option to spy on any element..
In Element, After clicking Launch buttion, identify is appearing for a split of sec and Launch button is coming back instead of Identify
PS- As mentioned in videos and links, I have launched calc via application modeller not directly via windows..
I am using windows 10, BluePrism V.5.0.11.0 versionenter image description here
Windows 10 calculator is complicated case, please consider using different application in your training. For example paint is much simpler to get started.
If you really need to get that going, then you may need to launch application first, using one object, and afterwards use second object to attach and interact with it.
can be two reasons
1. Either your application is not launched properly.
2. Sometimes we face problems with some versions of applications.
The best way to fix your problem is
Edit your settings remove the application path from the navigate stage.
Launch the application separately
Open Navigate stage > Action > Attach
Provide the window title within quotes (example: "Calculator")
Click OK then run the object
Now if you go to application modeller
You will be able to see the identify button under the element.
Hope this will help you.
I resolved this by unchecking "Disable invasive techniques (hooking)".
The Windows 10 calculator runs with process name win32calc which is also located under c:\windows\system32.
So when you launch the application please make you identify the applications process name and its location
I resolved this by circumventing to windows 7 calculator instead of a windows 10 calculator on windows 10.
Link to download win 7 calculator for win 10-
https://winaero.com/download.php?view.1795
This will be installed in the same place as your default calculator.
Inside-
C:\Windows\System32
The name of the app in my case was "calc1.exe" to avoid collisions with the default calculator.
I used this as my base reference app for spying and it worked.
Also note, the hover to highlight button seems to be a bit buggy, try a bit hit and trail to get you required button to be highlighted and mark using "Ctrl+LeftClick"

Is it possible to attach my window to a window of another application?

On Windows we can find the window handle of running process and attach our window onto it as a child window, so the two different processes look like the same one.
I wonder if there is a similar way to implement this requirement in cocoa.
This is possible using code injection. Have a look at mach inject framework and PorcShark Finder.
Or
Find position of another window using CGWindow methods and display your window over it.
Have a look at Son of Grab sample project.
Son of Grab shows how to use the new CGWindow API to get images of arbitrary sets
of windows, including images of the current contents of the screen.

Totally independent forms in tabcontrol

I'm designing an application on VB.net and I'm newbie as well.
I thought about the general architecture of the application and came up with the following idea.
the application is made of different modules
the user can run different modules in the same time
each module will run his main form in a different tab in tabcontrol
each module has his own modal forms, mode-less windows, messages, ... etc.
Before going through much development details, I started first with trying this design. Though, I couldn't first embed dynamically a form in tab during run time and even after some workarounds, I couldn't make the modules run perfectly in parallel. For example when I have a modal window displayed in a module, the whole application freezes while I expect only the related tab to freeze and be able to switch to the others to do some work.
Does anyone know how to make the tab contents completely separate and not have one freezes the other?
Thank you.
There's no need to have separate modules/forms to run more than one task simultaneously. The issue you are having with the UI freezing is you are running all operations on the primary thread. You need to multithread the application. Do a quick search on stackoverflow for multithreading vb.net. If you can't find anything let me know and I'll do the search and provide links.

Is there any way to write debug output to Android Studio in design mode?

When the output in design mode is not as expected in Android Studio, is there anyway to debug this by for instance inserting log-writing code that will be visible in the Android Studio IDE?
Let's say you're coding a custom View which will render a triangle. The designer renders a blank view. You want to inspect the variables at a certain point in the onDraw-method. The only way I've found is to insert a throw new RuntimeException("X is: " +x). This produces an exception which is visible in the designer, but it's not a good solution.
Is it possible to insert any smoother code which doesn't terminate the execution and still allows you to inspect the data?
I'm not sure of how to do this in design mode, but you could set up a quick test of the view to do this while running.
Android Studio provides a real-time logcat view for connected devices - just click the Android label at the bottom of the IDE.
You can use the logcat to monitor any output you specify using the Android Log object's methods.
It might be a good idea to use a custom tag for your log entries and then filter the logcat to only display entries with that tag, for example:
Log.v( "SomeLabel", "X is: " +x );
If you filter the output to SomeLabel in this example, you will only see the entries you want.
Also, if your onDraw method runs in real-time, it might be a good idea to only log once per second (or at some desired interval), instead of every call.

How to animate group of images in winform application using VB.Net

I am trying to load bulk images and trying to put them as a slideshow and it's working fine.
Now I would like to have some effects like flip out,ease out effect and fade effect on those images when changing them without using any user control as I would like to do with the existing picturebox.Is it possible to do so?
If so can anyone point me to some resources.
As I have done googling and found some useful links and I am placing here that might helpful to someone.And all these have use seperate usercontrols to do, and I am not looking into that.
http://code.google.com/p/dot-net-transitions/
http://www.codeproject.com/KB/cpp/fluid_effect.aspx
The built-in picture box has no such capability. Your solution will require custom-drawing regardless what control you use (assuming you don't get a 3rd party product).