--- Rob wrote:

> I know the window caption when it pops up, and the window text and
> that I want to send the keys "Alt-y" (the key sending part of
> PowerPro I understand fine and use in other scripts). So, could
> someone please explain how I would set up the HookWindowEvents
> command list (or even better a free standing script, as I can then
> use that as a template for a whole bunch of other confirmation
> dialogs I wish to deal with automatically) so that when the
> confirmation dialog pops up, PPro sees it and dispenses with it
> without any intervention on my part?

You want to take a PowerPro action when a window captioned �Some
Caption� is created.

First, save the following lines to HookWindowEvents.PowerPro:

; ---

If((Arg(1) == 4) && Arg(4) == "The Caption") Do
    ; Here go your commands to run when this window is created
    Win.Keys("%y")
EndIf

Arg(1) contains a number depending on whether a window was created,
destroyed, resized, etc.; 4 means window creation.

Arg(4) contains the caption of the window in question.

Refer to the Help file for more details there.

The script that you have saved will be where you place new rules for
other windows.

; ---

After that, create the HookWindowEvents command list in your
configuration and assign it one command:

Command:
.HookWindowEvents

Parameters:
(Arg(1), Arg(2), Arg(3), Arg(4))

-- 

Alex Peters / Melbourne, Australia
PowerPro v4.1.00 / Windows XP



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to