1. [WIN]Testing for duplicate windows
- Posted by Chris Bensler <bensler at mailops.com> Feb 03, 2001
- 473 views
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
2. Re: [WIN]Testing for duplicate windows
- Posted by Wolf <wolfritz at KING.IGS.NET> Feb 03, 2001
- 452 views
------=_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)
3. Re: [WIN]Testing for duplicate windows
- Posted by Wolf <wolfritz at KING.IGS.NET> Feb 03, 2001
- 463 views
.. 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
4. Re: [WIN]Testing for duplicate windows
- Posted by =?iso-8859-1?B?VG9uZSBTa29kYQ==?= <tone.skoda at SIOL.NET> Feb 03, 2001
- 466 views
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?