"nickvalman" wrote:

> ...
> My problem is quite simple. I want to set-up a menu with some 
> snippets. I have assigned a keyboard macro (win+space) which 
> launches a command list named "QuickLaunch" as a menu. I want to set
> up this command list so that it includes a submenu with my snippets.
> Whenever I select a snippet, I want it to be pasted to the active
> window.

There are several ways to do this in PowerPro. I suggest:

There's no need to set them up as a folder full of txt files
(as in your solution B) unless each snippet is very long.

Instead of making a separate command list for your snippets menu
it can be a submenu in the same command list as your QuickLaunch
menu.

If you have a problem with Keys when sending long phrases,
try clip.setpaste("a very long snippet") instead.

Suppose you want the submenu to appear as the third item,
then that third item should be Format StartSubmenu

Name: Sn&ippets
Command: Format
Format Command: StartSubmenu

Name: My &email
Command: keys
Parameter: ("[EMAIL PROTECTED]")

Name: &often write...
Command: clip.setpaste
Parameter: ("I often have to write this phrase")

Name: EndSubmenu
Command: Format
Format Command: EndSubmenu

Name: &Foxmail
Command: c:\apps\foxmail\foxmail.exe

in which case, Foxmail will be the fourth top level item
in your QuickLaunch menu

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

For very long snippets including several carriage returns
your "clip filepaste" is a good idea.
However, instead of doing it with a Menu Folder,
which stops your &mnemonics working, put each one as an
individual item in your submenu. I mean insert the following
as an item in the Snippets submenu of the QuickLaunch menu
as listed above

Name: &Regards
Command: Clip
Clip action: FilePaste
Enter file path for clip: "c:\mysnips\regards.txt"

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

Actually, for everything which uses the clipboard,
I prefer to save and restore the current clip,
so you could change that last item to:

Name: &Regards
Command: oldclip=clip.get
and these two lines in the more commands box at the bottom:
Clip FilePaste "c:\mysnips\regards.txt"
clip.set(oldclip)

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

> ... When I select a snippet I occasionally get the error:
> "Cannot find window to change or to send keys to "...

this should not happen provided you only use your hotkey
while a suitable window is focussed and the insertion point
flashing cursor is in a place where typing text manually works

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

> I have assigned a keyboard macro (win+space) which ...

better learn to call that a "hotkey" not a "macro"
which has a different meaning in PowerPro documentation
and discussion.
In PP, a macro is a series of keypresses in succession
which you have set to execute a command, such as: `abc
Your Win+Space is a single keypress (with Win as the modifier)
so it's called a hotkey.

Alan



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/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