Title in new command prompt

Features wanted...
admin
Site Admin
Posts: 65441
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

RalphM wrote:
admin wrote:Try again. I found out it changes... :?
Tried several times, always exactly the same though...
I have not found the pattern yet (might involve a reboot), but once it shows the correct icon it nevers goes back to the XY icon, until I install a new XY version which always starts with the wrong icon for a while (some hours...). Mystery...

Just to make sure: I did not code anything about icons here.

JML13
Posts: 48
Joined: 29 Nov 2006 09:54
Location: Marseille, France

Post by JML13 »

Neither of them bother me though.
Any news about that ?
I have the same behaviour and I have never seen the original command prompt icon... :cry:

RalphM
Posts: 2055
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Post by RalphM »

JML13 wrote:
Neither of them bother me though.
Any news about that ?
I have the same behaviour and I have never seen the original command prompt icon... :cry:
Thought that was solved, but when I just checked, all I got was the wrong icon. (though just after installing the new beta, so I might check again tomorrow)

Checked it again after a fresh boot (&before installing the new beta)
-> still the wrong icon and in the background
Last edited by RalphM on 30 May 2007 20:38, edited 1 time in total.
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

admin
Site Admin
Posts: 65441
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

JML13 wrote:
Neither of them bother me though.
Any news about that ?
I have the same behaviour and I have never seen the original command prompt icon... :cry:
This is a strange thing. There's some random factor in it that's certainly not coming from my code. I see the correct icon always since months, so I thought the case was solved. Sorry, no idea.

mwb1100
Posts: 213
Joined: 19 May 2007 06:20

Post by mwb1100 »

FWIW I am also seeing this behavior. If I examine the cmd process with SysInternals Process Explorer (ProcExp) there's a slightly different right-click menu behavior for these cmd processes than a standard cmd.exe process - for a normal cmd.exe, ProcExp has a context menu ("Window") that will let you bring it's window to the foreground, minimize, maximize, etc. For an XY-started cmd process, the "Window" menu item is disabled.

So it seems there's something different about the console window for these cmd processes.

Also, in case it matters, the cmd window that XY starts does not come up with the focus - it seems to me that it should, but I'm not sure if that's really how it should work.

May I ask how the cmd process is started (CreateProcess, ShellExec, or some other method) and what parameters are used? (I hope this is not proprietary info - obviously ignore if it is).

admin
Site Admin
Posts: 65441
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

mwb1100 wrote:May I ask how the cmd process is started (CreateProcess, ShellExec, or some other method) and what parameters are used? (I hope this is not proprietary info - obviously ignore if it is).
AllocConsole, SetConsoleTitle, CreateProcessA

I do NOT set these:
lpStartupInfo.dwFlags = STARTF_USESHOWWINDOW 'use the wShowWindow parameter
lpStartupInfo.wShowWindow = SW_SHOW 'set it

because it works alright without them here.

admin
Site Admin
Posts: 65441
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

mwb1100 wrote:May I ask how the cmd process is started (CreateProcess, ShellExec, or some other method) and what parameters are used? (I hope this is not proprietary info - obviously ignore if it is).
Thanks to mwb1100, this is fixed now. :D

mwb1100
Posts: 213
Joined: 19 May 2007 06:20

Post by mwb1100 »

Hey - Two of my suggestions implemented in XY!

I feel like a celebrity!

Thanks for the updates, Don.

Post Reply