Hello tproli,
> Thanks Alan, now I have this:
> oldstring = clip.get
> newstring = replacechars(oldstring,"-","{right}")
> clip.set(newstring)
> clip.paste
> Quite simple but the problem is (among others) that cannot emulate
> {right} or {tab} keys when pasting from clipboard.
Yes that's true. If you paste 1111{right}2222 etc, it will paste
exactly those characters. {right} is a special code which is
only understood by the Keys command, not by Paste.
That's why I wrote: win.keys(newstring)
You should have kept my suggested Keys command as the last line,
instead of changing it to a Paste, because Keys can simulate some
keypresses which cannot be pasted, such as a Right arrow key.
oldstring = clip.get
newstring = replacechars(oldstring,"-","{right}")
win.keys(newstring)
That is short enough to fit in the hotkey definition without
using a script file.
In the new hotkey's command editing dialog, paste exactly the following
-- without changing the Keys command to a Paste command!!!
Command: oldstring=clip.get
and in the More Commands box:
newstring = replacechars(oldstring,"-","{right}")
win.keys(newstring)
After copying the password string such as 1111-2222-3333-4444-5555,
place the insertion cursor in the first field of the serial number
input and then press your new hotkey.
I just tested that here, in a plain text editor window where there
were several blank lines after the insertion point. It made this:
1111
2222
3333
4444
5555
which is correct because in an editor, sending a right arrow
when at the end of a line moves to the start of the next line.
In a password entry thing the simulated right arrow should move to
the next box.
If I had used Paste instead of Keys as the final command,
it would have pasted this:
1111{right}2222{right}3333{right}4444{right}5555
which would be useless of course.
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hqi5jat/M=362335.6886445.7839731.1510227/D=groups/S=1706030409:TM/Y=YAHOO/EXP=1124772424/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/">In
low income neighborhoods, 84% do not own computers. At Network for Good, help
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~->
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/