Conemu suppresses launch of an OpenGL application - conemu

Getting tired of the terrible cmd window, I found ConEmu which turned out to be a great replacement... except it suppresses the creation of the OpenGL window when I double-click launch the exe (I have ConEmu take over the normal cmd window completely).
If I launch the exe by going to the folder through ConEmu and typing out the name testOpenGL.exe then the application window launches properly.
It would be great if anyone has come across a similar issue and knows the solution.
Link to file: https://www.dropbox.com/s/meif3dgq4cxq5ct/tlocInputCallbacks.7z?dl=0
The window itself is empty because nothing is drawn (wanted to avoid sharing assets), but it shows up. That is, without ConEmu the console shows up as well as the window with an OpenGL context. Double clicking and letting ConEmu handle the console output does not spawn the window. Running the app manually through ConEmu by using the command prompt running the exe fixes the issue.

Related

Winforms app: Wrong icon in start menu search

I'm building a simple Winforms application that deploys via msi (Visual Studio setip project). The msi creates a shortcut on the users desktop and the start menu.
Everywhere (desktop, start menu, taskbar when program is running, .exe file) the program icon is displayed correctly.
But not when I type the program name in the start menu search (see screenshot below). There some generic icon is displayed.
I quadruple-checked the icon set in Visual Studio > Winforms Project > Properties > Application and the icon for the shortcut set via the Visual Studio setup project. The .ico file has many different resolutions embedded, up to 512x512px. Since it's working fine everywhere else (except in the search) I can't think of anything als I could try.
Hans' comment was the solution for me. It seems that Windows caches the old/wrong icon. When I tried it on a clean Windows 10, it worked immediately.
Of course, I tried to clear the icon caches according to Application icon is blank when started from Process.Start or the script at http://www.winhelponline.com/blog/how-to-rebuild-the-icon-cache-in-windows but this did not work on my machine (even with a lot of restarts and killing of explorer.exe).

Is there a window opacity command in Batch?

I've been searching a lot but I can't find anything useful, the only answers I found were on how to change the opacity of an image using a .bat file. I just found out recently that you could change the opacity of the CMD window under properties, I want to know if you can do the same in a batch file using just a command.
You'll have to wait for windows 10.
Meanwhile you can console2.It's an enhanced console for powershell and cmd.exe. And some other alternatives.
From the development team and a place to comment - sort-of
AFAIAA, ot until Windows 10...

How to select a window from the background and make it the active window using batch programming / VB script

We are having twelve modules running in a server. Currently we have to monitor whether every module is working properly or not by logging in to the server and clicking on every individual module and checking the window. I am thinking of removing this manual dependency. I have made a VB script that can do the keyboard shortcut functions on the modules (e.g. If an MS word window is open, I can design the VB script to hit "Alt" and "F" buttons so that the "File" menu opens up). But the problem is that I can do it only on the active window and not the remaining 11 modules. Could anyone please suggest how I can programatically select another window/module?
You have to use the AppActivate Method. Here's the documentation for AppActivate.

Is there a way to permanently attach the console window to the main XCode window?

Using XCode 3. I know there's an option preferences > debugging > On Start: show console. This automatically brings up a separate console window. Is there anyway to attach the console window so, say, it appears below code C code I'm currently working on?
Help appreciated.
Switch to All-In-One mode of Xcode from it's preferences (it's possible, when all project windows are closed). After that you will have normal/debug mode switch and in debug mode will be able to see watch & console sections at the bottom.

NSIS installer opens up in the background

I have an NSIS installer that requires UAC elevation. When my setup.exe is executed through Chrome or IE, the UAC elevation dialog is displayed, but when the user confirms, Chrome comes back to the front and the installer is opened behind it.
It's worth nothing that I am using the UAC plugin (0.2.2c) and that bug was discussed a bit here, but even if I remove all traces of the plugin, the problem persists. Any ideas?
I have never verified this but I believe there could be a race condition when a NSIS installer starts up (Between the verification/CRC dialog closing and the first page of the "real" dialog starting up) If my assumption is correct, there could be a short period at startup where there is no visible window and foreground focus would go somewhere else.
Hopefully the UAC plugin will be updated soon... (There is no window in .onInit so that is why it has problems)
The problem was with invoking the inetc plugin in the .OnInit problem. See the examples here.

Resources