Hi Dave

> As well, you suggested calling the file paster.powerpro.  When I do so,
> I get an error message "Cannot access script file paster". ***Figured
> this out. I didn't realize "powerpro" was a valid file name
> extenstion.***

Yes if you use .powerpro as the extension for script files, then in
an Explorer file listing they have the icon for PowerPro scripts
and double clicking the file runs the script.
Also, if scriptname.powerpro is is your \powerpro\scripts\ folder
you can call it with the command: .scriptname

---------------------------------------------------

Back to your main problem, about not being able to go back to the
same text field in your custom application...

Some apps are like that :(

If the suggested workaround doesn't work (using a hotkey which does
field=win.getfocus while the input cursor is still in the field,
before using the bar)
then it looks like there is no way to return there automatically
after clicking a bar button.

So you need a different structure. I can think of two alternatives:

[1] use a menu instead of a bar.

The same command list as your bar can be used as a menu instead
with a few changes in its properties maybe.
Unlike bars, menus are not windows which take the focus.

You need only one hotkey, with command: Menu show mylist
Use the hotkey while the insertion cursor is in the target field.

Each menu item's command is: *Keys text to send
(no need to specify the target window for the Keys command).


[2] or, if you want a bar instead of a menu, this is possible:

Each bar button has the command: textvar= "text to paste"

Make one hotkey with command: win.keys(textvar)

It requires three user actions:
First click a bar button to select the text item and store it
in your global variable "textvar".
Then click back into the target field.
Then use your hotkey while in the target field.

Those actions are the opposite way round from solution [1]
which was press hotkey first, then pick from menu.

An advantage is that you can "paste" the same text into
several places if you wish before loading your var with
a different string from the bar.

-----------------------------------------

Variation on [2]:

The *keys command (or win.keys) is good for short text items.
For long texts, it might be better to paste instead.

You would use the same bar button commands: textvar = "something"

but the hotkey's command would be:

Command: clip.save
In More commands box:
clip.setpaste(textvar)
clip.load

By wrapping it between clip.save and clip.load
your current clipboard contents are preserved.




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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