Repeat

Kenneth Brody kenbrody at spamcop.net
Fri Mar 4 09:36:49 PST 2011


On 3/4/2011 10:49 AM, Richard Kreiss wrote:
>> -----Original Message-----
>> From: Kenneth Brody [mailto:kenbrody at spamcop.net]
[...]
>> On 3/3/2011 1:59 PM, Richard Kreiss wrote:
>>>> -----Original Message-----
[...]
>>>> On 3/3/2011 1:02 PM, Richard Kreiss wrote:
>>>>> I tested repeat prior to sending my email about moving the cursor
>>>>> down to Joe and the list.
>>>>>
>>>>> What I tried was
>>>>>
>>>>> QQ="\"[CDWN]\""
>>>>>
>>>>> Pushkey repeat(qq,br)
>>>>>
>>>>> This didn't work even though it passed the syntax check.
>>>>
>>>> DDW
>>
>> DDW
>>

DDW

>>>>> Is there a way to have pushkey work with repeat?
>>>>
>>>> It works just fine.
>>>>
>>>> However...
>>>>
>>>>        What is the value of "br"?
>>>
>>> My first try br="5"
>>
>> Re-read the docs on REPEAT().
>>

Have you done so?

>>>>        Note that you have put the text "[CDWN]", _including_ the
>>>> quotes, into field qq.
>>>
>>> Would not QQ="\"[CDWN]\"" put the quotes into qq?
>>
>> Yes, it does, which is exactly what I said it did.  Why do you want them
>> there?
>
> Is not the structure of pushkey "[CDWN]" when using special keys?

Yes, you put brackets around the 4-character code.

> If so, I would assume that Is would have to include them in qq.

Why?

What keystroke(s) would you expect to be pushed, given the following:

   aa = "[CDWN]"
   qq = "aa"
   pushkey qq

No fair cheating by actually trying it.  Given your understanding of how 
filePro works, what keystroke(s) would you expect to be pushed?

> I have tested qq="CDWN"

You need the brackets, unless you want to push the four keystrokes "C", "D", 
"W", and "N".

> I have not been able to get this to work.

DDW

> I have set  zz=repeat("[CDWN]",br)

Given the correct value of br, this is one valid way of pushing CDWN keystrokes.

> Zz=repeat([CDWM],br);  pushkey zz

This cannot work, as it's a syntax error.

> I still can't get this to work.

DDW

> What am I doing wrong?

You haven't answered several of my questions.

Once you have done so, either (1) you will discover it for yourself, or (2) 
we will be better able to help.

-- 
Kenneth Brody


More information about the Filepro-list mailing list