From: forums.macromedia.com on
Hi everyone,

I don't know what i'm missing. I tried several ways but nothing so far.

I have an interaction where the user has to hold down the CLT first, then
ALT, then ENTER. I attached a calculation icon before and after the
interaction that has Flushkey() and PressKey(""). I thought the
PressKey("") will clear the key that the user has pressed. When i click on
the repeat button, it still remembers the keys that was pressed and skips
the interaction.

In the interaction, I have 3 keypress icons, each for CLT, ALT ,
Enter|Return. Another keypress icon for wrong feed back set to "?". A
calculation icon that is set to Key="CtrlAltEnter" for correct response.

I really don't know how to reset the Key variable. I thought the
PressKey("") would clear it. Any ideas?

Thanks.


From: Steve Howard on
Did you try

Initialize(Key)

?

Steve
From: Mike Baker **Adobe Community Expert** on
You're on the right track with PressKey but you can't give it an empty
string. You have to give it something to press. Perhaps " ".
Ctrl and Alt are 'modifiers' they are not seen as actual keys. The
Authorware runtime doesn't receive a key until you press the enter. So your
KeyPress entry would be CtrlAltEnter. There's no way to tell if they do Ctrl
first or Alt. In Windows keypresses there isn't any difference between
AltCtrlEnter and CtrlAltEnter.

HTH,
Mike
====================
Mike Baker
Adobe Community Expert
mike-baker(a)cox.net

"forums.macromedia.com" <lion_eyes1(a)hotmail.com> wrote in message
news:fno6h9$2io$1(a)forums.macromedia.com...
> Hi everyone,
>
> I don't know what i'm missing. I tried several ways but nothing so far.
>
> I have an interaction where the user has to hold down the CLT first, then
> ALT, then ENTER. I attached a calculation icon before and after the
> interaction that has Flushkey() and PressKey(""). I thought the
> PressKey("") will clear the key that the user has pressed. When i click
on
> the repeat button, it still remembers the keys that was pressed and skips
> the interaction.
>
> In the interaction, I have 3 keypress icons, each for CLT, ALT ,
> Enter|Return. Another keypress icon for wrong feed back set to "?". A
> calculation icon that is set to Key="CtrlAltEnter" for correct response.
>
> I really don't know how to reset the Key variable. I thought the
> PressKey("") would clear it. Any ideas?
>
> Thanks.
>
>


From: Chris Forecast on

"Mike Baker **Adobe Community Expert**" <mike-baker(a)cox.net> wrote in
message news:fno94l$573$1(a)forums.macromedia.com...
> There's no way to tell if they do Ctrl first or Alt.

You could presumably 'watch' ControlDown & AltDown?

Chris Forecast


From: forums.macromedia.com on
Thanks to you all guys. You were very helpful. Actually it worked by
adding a space inside the quotes in the PressKey(" ").

I am sorry i wasn't clear in my email. I meant the user can hold down the
Control and Alt keys in either order, then pressing the Enter key on the
keyboard. It works fine. I gotta test it on the packaged piece to see if
it works ok :-/

thanks again :)


"Mike Baker **Adobe Community Expert**" <mike-baker(a)cox.net> wrote in
message news:fno94l$573$1(a)forums.macromedia.com...
> You're on the right track with PressKey but you can't give it an empty
> string. You have to give it something to press. Perhaps " ".
> Ctrl and Alt are 'modifiers' they are not seen as actual keys. The
> Authorware runtime doesn't receive a key until you press the enter. So
> your
> KeyPress entry would be CtrlAltEnter. There's no way to tell if they do
> Ctrl
> first or Alt. In Windows keypresses there isn't any difference between
> AltCtrlEnter and CtrlAltEnter.
>
> HTH,
> Mike
> ====================
> Mike Baker
> Adobe Community Expert
> mike-baker(a)cox.net
>
> "forums.macromedia.com" <lion_eyes1(a)hotmail.com> wrote in message
> news:fno6h9$2io$1(a)forums.macromedia.com...
>> Hi everyone,
>>
>> I don't know what i'm missing. I tried several ways but nothing so far.
>>
>> I have an interaction where the user has to hold down the CLT first, then
>> ALT, then ENTER. I attached a calculation icon before and after the
>> interaction that has Flushkey() and PressKey(""). I thought the
>> PressKey("") will clear the key that the user has pressed. When i click
> on
>> the repeat button, it still remembers the keys that was pressed and skips
>> the interaction.
>>
>> In the interaction, I have 3 keypress icons, each for CLT, ALT ,
>> Enter|Return. Another keypress icon for wrong feed back set to "?". A
>> calculation icon that is set to Key="CtrlAltEnter" for correct response.
>>
>> I really don't know how to reset the Key variable. I thought the
>> PressKey("") would clear it. Any ideas?
>>
>> Thanks.
>>
>>
>
>