1. [WIN]Testing for duplicate windows

Hey all..

  I know this has been addressed before, and I'm even quite sure there 
is a demo for this.. but I'll be damned if I can find any info about 
it..

I've searched both, the list and the program archives and came up null..

So.. can someone tell me how to retrieve a handle for a window specified 
by name?

The reason I want this, is because I think I may be able to solve Todd's 
problem of his DLL not being unloaded..

If I can poll for the EXW ms-dos window being created.. then I can shut 
down exotica.. allowing the program to abort properly..

Chris

new topic     » topic index » view message » categorize

2. Re: [WIN]Testing for duplicate windows

------=_NextPart_000_01C08DEB.C51E4460

.. well, how about by name.
.. checking for 'dups' seems to be broken with 0.55.1.
( out of my 'tuts' , so make up your own window to check for... )

------=_NextPart_000_01C08DEB.C51E4460
Content-Description: kick-it2.exw (EXW File)

new topic     » goto parent     » topic index » view message » categorize

3. Re: [WIN]Testing for duplicate windows

.. upon reflection, since a console doesn't seem to have a window class  
;-(
.. and you are looking for a console ???
You might just poll using one of these:
constant
STD_OUTPUT_HANDLE = #FFFFFFF5,
STD_ERROR_HANDLE = #FFFFFFF4,
--
-- with this function:
zGetStdHandle=registerw32Function(kernel32,
"GetStdHandle",{C_INT},C_INT)
-- If there is no console open, the function will return -1.
--INVALID_HANDLE_VALUE=#FFFFFFFF

Wolf

new topic     » goto parent     » topic index » view message » categorize

4. Re: [WIN]Testing for duplicate windows

Chris Bensler wrote:
> how do I get the handle of a specific window titled "EXW"?

With C function FindWindow or FindWindowEx you get window handle, you mean:
"how do i get win32lib's id of window"? search for window handle in all
win32lib handles, i think you get them with getHandles() or something like
that.

>From: Wolf <wolfritz at KING.IGS.NET>
> ... and you are looking for a console ???

I don't understand why would anyone need handle of console window?

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu