Re: Handling User Intervention whilst MoveFolder Object execution by mr_unreliable
mr_unreliable
Tue Jul 11 16:09:30 CDT 2006
hi Karthike,
vbs has limited tools for this.
As long as the dialog caption is always the same, you can use
appactivate (as a function) to test for when or if the dialog
is appearing. That is, if the dialog appears then appactivate
returns true, otherwise false.
Once the dialog does appear, you can use sendkeys to "push the
button" that dismisses the dialog. If the relevant button has
focus by default, then just use sendkeys to send a cr. Otherwise
you may have to send some tabs to skip over other controls andget
to the desired button. Or alternatively, you can send the
appropriate speedkeys. (For example: alt+x, or ctrl+x).
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
karthikeyansen@gmail.com wrote:
> HI all
>
> I would like to know what is the method or idea to handle a renaming of
>
> folder that requires user intervention.
>
>
> When i performed a manual rename of a folder, i find that there is a
> manual input required to proceed with renaming:
>
>
> "Renaming, deleting "Program" could make the program may cause the
> program not to work...
>
>
> It prompts for OK or Cancel...
>
>
> How do i handle this case in VB Script..?
>
> Thanks
> Karthik
>