I think the following workaround is as close as possible to your design.
I did not test it here because I do not have your database program
nor Outlook 2003.
You need only one hotkey.
Only two user actions are necessary: press the hotkey when the
cursor is in the target field, then click the desired bar button.
The hotkey's command: field=win.getfocus
For every item on the bar:
Command: win.setfocus(field)
More commands:
wait.for(100)
keys your text for this button
Note: the wait.for(100) might not be needed.
Try it with no wait, or experiment with longer or shorter
waits to find the minimum wait which makes it work.
--------------------------------------------------------
Disadvantage: two user actions are necessary.
Advantages:
- only one hotkey to remember
- no need to click back into the target field to focus it
- no need to use Ctrl-v
- no need to keep the bar showing all the time;
you can show it only after the hotkey is pressed.
To do that, uncheck OnTop in the bar's properties
and change your hotkey to:
Command: field=win.getfocus
More commands: bar show mybar
-------------------------------------------------------
Maybe you will find that Pasting into the field is faster
and more reliable than using a Keys command.
You can do that in a way which does not change the clipboard
in case it contains something useful.
Set the same hotkey as above, and every button does this:
Command: win.setfocus(field)
More commands:
oldclip=clip.get
wait.for(100)
clip.setpaste("your text for this button")
clip.set(oldclip)
Note: experiment with shorter/longer/no wait
-----------------------------------------------------
If you often change the text to be pasted for each button,
maybe you will prefer editing a text file script, instead of
using the pproconf dialogs to change the bar's command list.
Same hotkey: Command: field=win.getfocus
More commands: bar show mybar
The first button on the bar has a permanent command like this:
Command: [EMAIL PROTECTED]
for the second button:
Command: [EMAIL PROTECTED]
etc
Save the following as paster.powerpro in your powerpro\scripts folder.
;; ------------- paster.powerpro -------
@one
thistext = "text for button one"
[EMAIL PROTECTED]
@two
thistext = "text for button two"
[EMAIL PROTECTED]
@three
thistext = "text for button three"
[EMAIL PROTECTED]
@common
oldclip=clip.get
win.setfocus(field)
wait.for(100) ;; [experiment with this]
clip.setpaste(thistext)
clip.set(oldclip)
quit
;; ------------- end of paster.powerpro --------
Attention: PowerPro's Web site has moved: http://www.ppro.org
SPONSORED LINKS
| Computer monitoring software | Power pro | Computer and internet software |
| Free computer monitoring software |
YAHOO! GROUPS LINKS
- Visit your group "power-pro" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
