Repeat
Kenneth Brody
kenbrody at spamcop.net
Fri Mar 4 11:35:31 PST 2011
On 3/4/2011 2:07 PM, Richard Kreiss wrote:
[...]
>>>> What keystroke(s) would you expect to be pushed, given the following:
>>>>
>>>> aa = "[CDWN]"
>>>> qq = "aa"
>>>> pushkey qq
>>>
>>> In this case qq would be equal to the literal aa and not [CDWN], so none
>> would be passed.
>>
>> Nothing at all? Are you sure?
You didn't answer this.
[...]
>>> 64 ------- - - - - - - - - - - - - - - - -
>>> ◄ If: br gt "1"
>>> Then: pushkey "\""{zz{"\""
>>
>> Why, why, why, why, why? Why do you insist on adding those extra quotes?
You didn't answer this, either.
In fact, given your response later on, it appears you think that you need
even more quotes.
[...]
>>> No syntax error. However when zz if checked in the debugger, zz=[CDW
>> and blank out to the right.
>>
>> No syntax error where?
>>
>> How is zz defined? And how, exactly, was zz assigned a value when it ends
>> up with "[CDW"? (My guess is that you passed "4" to REPEAT.)
>
> Zz=[CDWN][CDWN]CDWN][CDWN
>
> And yes, 4 was passed in this case.
No it wasn't. If you ended up with "[CDWN][CDWN][CDWN][CDWN", then you
passed 23. (And I am assuming that there was an open-bracket on the 3rd
instance, which you failed to type into your e-mail.)
If you passed 4, then you would have had "[CDW", as you originally said you had.
Which is it, "[CDW" or "[CDWN][CDWN][CDWN][CDWN"? (Or was it really
"[CDWN][CDWN]CDWN][CDWN", with the missing open-bracket on the 3rd instance?)
> I am not quite sure how to account for all possibilities.
The code you showed before (with br*"6") takes all possibilities into
account. What do you think is missing?
> [CDWN] contains 6 characters which needs to be repeated 4 times. Apparently even with the missing closing bracket pushkey works.
It's possible there's a bug in filePro there.
> PS: will test with adding the additional quotes.
Huh? Why do you want to add even more quotes, when I keep telling you that
you already have extra ones?
--
Kenneth Brody
More information about the Filepro-list
mailing list