Keep a flag:
EnterKey = 0
if character = [ENTER_KEY} then EnterKey = EnterKey +1
You'll have to figure out what causes the flagEnterKey to be reset to 0.
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
WaltP >> Sry, but your code won`t work, now I`m feeling such noob... :(
Maybe you did it wrong. As a noob, how can you tell it "won't work?" I've been using this technique for years. Maybe you need to describe what you don't understand about it.
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944