View Full Version : e_key cause 2 instances
03-10-2004, 04:08 PM
Whenever I use the e_key event, it cause the action to occur twice. Here is one sample code:
if e_Key == 32 then
File.Open("c:\install.log", "", SW_MAXIMIZE);
Is this an anomoly or has anyone else experienced this?
Your code works fine on my system. It only opens one instance of a document that I set up.
Perhaps it could be something to do with your hardware?
03-10-2004, 04:21 PM
I thought about that after I posted this. I need to test on another computer.
03-10-2004, 10:17 PM
How about the Character Repeat' then...'Repeat delay' (Win XP Home Edition for this example)?
If set to the 'short' end it is possible that when the said key is in the down state Windows (OS) is seeing this as more than one key press, thus held down to long?
In Win XP Home Edition, again, the Keyboard applet in the Control panel to adjust that setting.
Hope this helps or stirs up a solution.
03-11-2004, 09:39 AM
I checked the character repeat, and it should have been fine where it was set. I slowed it down even more, with no change in the result.
I am preparing to test on another computer.
03-16-2004, 10:17 PM
Sounds like a good idea. It will still leave us not knowing the cause though on the first machine and that will gnaw at me I'm sure. (grin)
ps. Try another keyboard then on the 'problematic' machine?
03-17-2004, 05:39 AM
I haven't tested on another machine yet - I have been out of town. Will get to it soon.
03-22-2004, 11:07 AM
I thought I seen this post somewhere.
The e_Key event is firing twice. I have the exact code elsewhere and it doesn't do this. No matter how fast you hit the key, it runs twice for some reason. Bug?
03-22-2004, 11:12 AM
The problem occurs on some machines, but does not on others. All computers I tested on are using XP Pro.
Powered by vBulletin™ Version 4.0.6 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.