I would say that
VP8 had the bug, if that's the case. If you are counting the return key presses, you are counting the return key presses.
Just subtract 1 from keypresses for each of the text input responses.
If keycode=2 then MsgBox("Hi"):keypresses=keypresses-1
If keycode=3 then MsgBox("Hi x1"):MsgBox("Hi x2"):keypresses=keypresses-2
If keycode=4 then MsgBox("Hi x1"):MsgBox("Hi x2"):MsgBox("Hi x3"):keypresses=keypresses-3You have also spelled keypresses ketpresses at the start, but that should make no difference.
Sorry if you already knew that but was just commenting on the behavior.
Yes it's unique to
VP9.something. So it could be considered a bug I guess. It could however be considered a change of behavior.
Even though
VP somewhere<9.7 handled text input functions differently, I think it may be for the best that it was changed.
If you just move those three lines out of the Key input sub, they will still work, and they will still work with the return key without adding to keypresses.
I moved them to keyUP and they work.
What if someone wanted to count input functions as well as plunger functions? What if someone wanted to count the responses, what if they were a map of mission choices?
The way it is now any hit of the return key is going to be counted, but only if it's inside the loop that is counting return key presses.
Yeah I understand what you're saying -
this "table" was slung together in literally 2 minutes to try & demonstrate the issue.
On the actual table I'm trying to upgrade from vp8 to vp9, the enter key is used to move the game on in a completely different way, and the actual number of keypresses isn't counted at all - basically after the message box, the game is paused with a "press any key" routine used - obviously this buggers that right up - especially as the number of message boxes popping up changes depending on what's happening in the game. Also, the enter key is used for other function at different points of the game

If it makes it clearer, I'm updating my "Hat-Trick" head-to-head football table to a World Cup version...and the message boxes are used to convey results, and info about goal replays etc... The enter key is used to start games, and move the game on in-between player fixtures etc.
I am aware I'm doing things with message boxes (& vp in general) that isn't normally done in any other pinball game - so it doesn't surpirse me that this hasn't come up until now.
Regards,
Dan.
A wizard only needs one ball...but can handle six.