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).
Announcement
Collapse
No announcement yet.
e_Key not working with Mouse Buttons?
Collapse
X
-
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
-
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
-
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
Comment