I just did more tests about copying selected text
in the active window by clicking a bar button.

These work:

Command: Clip.copy
More commands:
do(?"C:\Program Files\WordWeb\wwnotray.exe")

Command: win.resetfocus
More commands: Clip.copy
do(?"C:\Program Files\WordWeb\wwnotray.exe")

Command: win.resetfocus
More commands: Clip copy
do(?"C:\Program Files\WordWeb\wwnotray.exe")

but this does not work:

Command: Clip copy
More commands:
do(?"C:\Program Files\WordWeb\wwnotray.exe")

This demonstrates two things:
- win.resetfocus does its job when placed before a command which
is unable to reset the focus itself (clip copy)
- win.resetfocus does no harm when placed before a command which
does not need it (clip.copy)

IMHO Clip Copy should use the same code as clip.copy

I don't know how many of the other commands and plugin calls
require a win.resetfocus when they are used from a bar button.
As Alex just pointed out, Keys are sent to the previously active
window.
I think there are differences between "window action" and
"window.action" and "win.action", which is another minefield
of inconsistencies often requiring trial and error to get the
desired result. Here too you may need to refresh PowerPro's
notion of what is (was) the current target window by doing a
win.resetfocus as the first command.



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