|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: May 2008
Location: Newport, KY
Posts: 3
|
using FindWindow when multiple windows have the same title
Hey all,
I am trying to use FindWindow, GetDlgItem, and SendMessage to automatically answer a question that a program prompts for (the program is executed from the NSIS script). The problem is that there are two windows with the same title open at the same time, and FindWindow is returning the handle of the window that has no controls on it. Does anyone know how I might get the handle of the other window with the same title? Thanks for your help. uncle SJ |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
call FindWindow again with the first handle you got as childafter, or use EnumWindows with the system plugin (it has a sample in its readme)
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2008
Location: Newport, KY
Posts: 3
|
it worked!
Anders, you are indeed a major dude. I used the first thing you suggested and eventually got it to work. Many thanks!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|