-- a few tips that might help --

Worth checking out:
Help Index "string functions"

and Julien Pierrehumbert's Regex plugin which can be downloaded
from http://julp.curvedspaces.com/pp.html

I don't know whether Regex is necessary for your particular need;
I am sure it will be powerful enough to do what you want;
just not sure whether the learning involved will be necessary;
maybe PowerPro's built in string manipulation features will suffice.

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

Michael O'Henly wrote:

M> 1. Paste data into form.
M> 2. Highlight data to be cleaned up.
M> 3. PowerPro macro does a search-and-replace within that selected data.
M> 4. Post the data.

Maybe reorder those steps. I can't see why you would paste the
data into the form before cleaning it. Your PowerPro script won't
work directly on what is in the form; your string manipulation
routines would operate on some text held in a variable; you would
only paste it into the form when that processing is complete.

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

If you have a collection of text snippets which you regularly
paste into forms, you could store them in an ini file for easy
retrieval, one item per line, arranged in sections:

[form ID 1]
name = name to paste in form 1
pass = password for this form
etc

[form ID 2]
name = name to paste in form 2
etc

You would need to replace everything shown above, to use more
suitable section names and value names.

You could use Alan Campbell's ini plugin from
http://groups.yahoo.com/group/power-pro/files/
Plug-ins_and_add-ons/0_Registry%20and%20Ini%20Access/
[that is all one line]
to retrieve the appropriate value for a particular form field,
from your ini file into a variable. Then manipulate that string
if necessary for this occasion. Then paste it into the form.

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

The Keys command is good for sending small amounts of text, but slow
for long strings (and it can have timing problems sometimes).

Clip.textpaste(myvar1) is better than the Keys command if myvar1
contains more than a few chars.

To use clip.textpaste without losing the current clipboard:

oldclip=clip.get
clip.textpaste(myvar)
clip.set(oldclip)

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

I hope some of that will be useful to you,

Alan Martin



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/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