> There are probably a few ways to do this... here's one:
>
> Use HookWindowEvents -- read up on this in the main PowerPro Help >
> Scripts > "Running a script when a window or system event occurs".
>
> Create a new command list & call it "HookWindowEvents". Put one
item in
> it, the command: .filehook(arg(1), arg(2), arg(3), arg(4))
>
> (note the period before "filehook", it must be included).
>
> Next, create a script called filehook.powerpro & put it in the scripts
> folder under your PowerPro installation.
>
> In the filehook.powerpro script, put:
>
> ;; --- start ---
> if (win.exename(arg(2))=="Opera") do
>
> if (arg(1)==3) do
> win.keys("%^2")
> quit
> endif
>
> if (arg(1)==4 && not(anywindow("=Opera"))
> win.keys("%^1")
> quit
> endif
>
> endif
> ;; --- end ---
>
> And that may well do it, altho I haven't tested the above. Also, I've
> assumed Opera's exe is called "Opera", change that if not. Hmm.
And, I
> am not sure where the key shortcuts are actually going, too, so you may
> need to specify a target for them.
>
> With the above script, PowerPro will check whenever a window
> opens/closes to see if it's Opera, & send the relevant keys to your
> system if so.
>
> Give it a spin & let us know if it doesn't work. :)
>
> Cheers
> Karen
>
This is very interesting (HookWindowEvents). I've never tried it
before and after reading this I'm starting to get some ideas (PowerPro
is great for inspiring new ideas).
But it's a little strange for me. I have read "Running a script when a
window
or system event occurs", but I don't quite get it. Is there somewhere
I can see some examples with explanations about what they do?
Karen, would you be able to walk through your script and tell me what
your statements that include "arg()" are saying?
Thanks,
Ben
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/