> Would FindWindow work? Can I then call SetConsoleCursorInfo
you might be able to find the window. but how to call
console functions for it? i don't see an obvious way.
the problem is that these console functions all work on
"the" console associated with your process (there can be only
one such gadget, so they don't need any ID for it).
I don't see how to call them for a console that isn't "yours".
Maybe something dangerous and abusive like the following:
Call SetWindowsHookEx to get notifications on something
sure to happen "often enough". I think when your hook
function gets called, it executes on the thread of the
hooked process - so you can call CreateConsoleScreenBuffer
to get the handle you need to call SetConsoleCursorInfo.
I have no clue if any of the above will work - in particular
i'm not sure what to "hook" since console windows don't have
the usual message loop. "WH_FOREGROUNDIDLE" sounds tempting.
Also sounds risky though given that you need to hook every
process. If you have some way to locate just the DOS boxes
maybe you can hook them selectively by thread.
Quite a lot of fuss and bother for a little blinking
box <g>
-ns
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/