e_key cause 2 instances

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • kmartin7
    Forum Member
    • Jun 2002
    • 57

    e_key cause 2 instances

    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);
    end

    Is this an anomoly or has anyone else experienced this?

    Kurt
  • Adam
    Indigo Rose Staff Member
    • May 2000
    • 2149

    #2
    Kurt,

    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?

    Adam Kapilik

    Comment

    • kmartin7
      Forum Member
      • Jun 2002
      • 57

      #3
      I thought about that after I posted this. I need to test on another computer.

      Thanks.

      Comment

      • Intrigued
        Indigo Rose Customer
        • Dec 2003
        • 6138

        #4
        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.
        Intrigued

        Comment

        • kmartin7
          Forum Member
          • Jun 2002
          • 57

          #5
          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.

          Comment

          • Intrigued
            Indigo Rose Customer
            • Dec 2003
            • 6138

            #6
            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?
            Intrigued

            Comment

            • kmartin7
              Forum Member
              • Jun 2002
              • 57

              #7
              I haven't tested on another machine yet - I have been out of town. Will get to it soon.

              Comment

              • rhosk
                Indigo Rose Customer
                • Aug 2003
                • 1698

                #8
                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?
                Regards,

                -Ron

                Music | Video | Pictures

                Comment

                • kmartin7
                  Forum Member
                  • Jun 2002
                  • 57

                  #9
                  The problem occurs on some machines, but does not on others. All computers I tested on are using XP Pro.

                  Comment

                  Working...
                  X