how can i make them check e_keys ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • GoOgLe
    Forum Member
    • Mar 2007
    • 452

    how can i make them check e_keys ?



    i want to do it but i am not sure if it is possible to get it correct all the time ?

    check NUM, CAPS, SCRL
  • MathiasvK
    Forum Member
    • Mar 2008
    • 9

    #2
    Do you want to see if they are pressed or what?

    Comment

    • GoOgLe
      Forum Member
      • Mar 2007
      • 452

      #3
      yes thats what i want

      Comment

      • MathiasvK
        Forum Member
        • Mar 2008
        • 9

        #4
        Well this is a simple check just to see which e_key you are pressing of Caps, Num and Scrollock:

        if (e_Key == 20) then
        Dialog.Message("eKey","CAPSLOCK is on");
        end

        if (e_Key == 144) then
        Dialog.Message("eKey","NUMLOCK is on");
        end

        if (e_Key == 145) then
        Dialog.Message("eKey","SCROLLOCK is on");
        end

        But it won't recognize if the key is On or Off.

        /Mathias

        Comment

        • longedge
          Indigo Rose Customer
          • Aug 2003
          • 2496

          #5
          Didn't the answer in this post help? The same word of caution about checking where the focus is applies and the same problem with the initial state of the keys. There are dll's that will do this but I haven't found one that I can integrate with AMS yet.
          Last edited by longedge; 04-01-2008, 12:57 PM.

          Comment

          • MathiasvK
            Forum Member
            • Mar 2008
            • 9

            #6
            Originally posted by longedge View Post
            Didn't the answer in this post help? The same word of caution about checking where the focus is applies and the same problem with the initial state of the keys. There are dll's that will do this but I haven't found one that I can integrate with AMS yet.
            Ah, that is an excellent sample code for that purpose longedge! I like it. :yes

            Comment

            Working...
            X