getting a delphi app to close a dialog that popped up from a driver -


i have delphi app tries open webcam. under windows 7 fails (that's story/question/thread) webcam driver pops dialog titled "video source" inviting me select one. if try open driver repeatedly in loop , close dialog manually each time appears, can going. close dialog app. findwindow (nil, 'video source') doesn't find it. if process explorer dialog shown belonging app. if force close pe closes app!. how close dialog? have suspicion (confirmed) app hanging while dialog open, make pretty difficult execute code close dialog.

if main application thread stalled waiting user input due popup dialog solution have thread running regularly attempts locate popup. when find use postmessage uses wm_close or similar popup handle. might have send either mousedown/mouseup messages button on popup.

further, write small debug application uses windows api windowfrompoint find out popup window, ie. not it's visible caption it's class. can use debug program findwindow work correctly.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -