Page 2 of 2

Posted: 05 Feb 2007 08:43
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.

Posted: 29 May 2007 23:41
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:

Posted: 30 May 2007 00:03
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

Posted: 30 May 2007 08:04
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.

Posted: 30 May 2007 19:04
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).

Posted: 30 May 2007 19:22
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.

Posted: 03 Jun 2007 21:49
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

Posted: 04 Jun 2007 20:17
by mwb1100
Hey - Two of my suggestions implemented in XY!

I feel like a celebrity!

Thanks for the updates, Don.