case(?"upper", select(remove(?"unnecessarily complicated",22),1))
++ replacechars(?[z[,?#z#,?"e") ++ esc(?+cx64+,?_c_)
wrote:

T> This is a "who has focus" issue.  As soon as you click the button,
T> the button has focus; therefore, no text to copy. Switch to a 
T> vanilla "hotkey" or "hotkey to a menu" to call your clip.copy 
T> cammands.

John can make his "Copy then open Wordweb" work from a bar button
if he wishes.

Tested here, using Maxthon and WordWeb as in John's description,
it works to attach these commands directly to a bar button:

Command: clip.copy
More commands: "C:/Program Files/WordWeb/wwnotray.exe"

When they are executed from a bar button, almost all Powerpro
commands and plugin calls first reset the focus to the window
which was focussed before the bar button was clicked.


IF (a big if) he has to use a hotkey instead of a bar button,
what does win.getfocus followed by win.setfocus actually achieve?
It finds out which window is focussed and then focusses it, ROTFL.

It seems redundant to use ANY of the win plugin's focussing
services in your solution, when the stated reason for using a
hotkey instead of a bar button is because it stops the target
window losing focus.
If a hotkey is actually preferred, it could simply have
clip.copy as its first command without needing any of that
win.getfocus ... win.setfocus stuff.


IF in some situation it really is necessary to reset the focus
(which I assume is the intention of your solution) then one should
use win.resetfocus (which works directly from a bar button as well as
from a hotkey) rather than your win.getfocus followed by win.setfocus
which would not work from a bar button IF refocussing were actually
necessary, because win.getfocus would return the handle of the bar.




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