Announcement

Collapse
No announcement yet.

e_Key not working with Mouse Buttons?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • e_Key not working with Mouse Buttons?

    Hi! The Virtual Key Codes List in the AMS help does not list the Mouse Buttons but the linked MSDN file has them (http://msdn.microsoft.com/en-us/libr...31(VS.85).aspx). I tried to use "1" and the constant from the MSDN for left Mouse Button but it does not seem to work. Did anyone else manage to use Mouse Buttons on Key Events? I wanted to use it in the Thumbnail Plugin to do something after the user clicks on a thumbnail (the app will be used with a touchscreen).
    Bl4ckSh33p-Soft - Custom Software and Indie Games

  • #2
    There is mouse events also.

    Comment


    • #3
      I misread what you were saying, On Key (number e_Key, table e_Modifiers) gets you the key thats pressed and On Mouse Button (number e_Type, number e_X, number e_Y) tells you the mouse state, neither event is global so you could On Key set number e_Key, table e_Modifiers to global variables then On Mouse Button know what key is pressed.

      Failing that use MemoryEx and subclass the main window and capture the events yourself.

      Comment


      • #4
        Here is all the mouse events you can get yourself:

        http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

        Here is all the keyboard events:

        http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

        I think all you'll need to know is getting a low and high order:

        http://www.indigorose.com/forums/thr...ight=low+order

        Comment


        • #5
          I will take a look at it, thank you!
          But It looks complicated from what I have seen so far. I will try the OnMouse event and see if this works. (it will run on a touch screen with no mouse but touching something = clicking something?)
          Bl4ckSh33p-Soft - Custom Software and Indie Games

          Comment


          • #6
            Remember as well that the on key events from AMS or if you do it yourself depend on the window having focus, if you have a main window with say a listbox in it and you are working on the listbox then the main window wont be getting any messages.

            Comment

            Working...
            X