How to control another applications message box from VB6
Posted on 2004-04-30
I have a program that runs the ImportExportFavorites command of ShellUIHelper. Natually this causes IE to ask "are you sure you wanna import your favs?" and "operation complete (click okay)". Ideally i'd like to run ShellUIHelper with an option that tells it not to show these messages, but i didnt see that as an option. So now the only thing i can think of is sendkeys "y" and "<enter>". Problem is that since this is an import command, the time varies. I could just loop for a while, or set a timer and send them- but that is sloppy. I'm trying to find a way to search for the message box, but i have know idea what its name is. It has no taskbar real estate and the name "Import Favorites" (which is shown ontop of the box) didnt work with appactivate. My plan is to have this program run late at night when no one is using the computer; however i cant be sure that someone wont send an IM or something. Please help.... running out of ideas.