Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Detect MouseWheel in BlueGUI

Author
Message
Wolfhound
19
Years of Service
User Offline
Joined: 14th Oct 2005
Location: Paddy\'s Green Shamrock Shore
Posted: 23rd Nov 2005 02:48
Calling Rob K or anyone who can help...

Recently bought BLUE Gui (an absolute steal at 16Euro) and I'm just coming to grips with it - great work Rob!

Anyhoo, I'm going nuts trying to figure out if the mousewheel can be detected with EventType().. or indeed the middle button or any extra buttons on the mouse.

It seems that all buttons can be detected with eventData() when MouseMove (512) is detected in eventType(), so I can tell if any button is kept pressed while moving the rodent. But I can't seem to detect any button presses on their own, except for left/right.

Help! (Pretty please..)

And yes, I searched the forum - if the info is there it's buried real deep!

Reality is grossly over-rated.
Torrey
20
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 23rd Nov 2005 06:09 Edited at: 23rd Nov 2005 06:12
This wasn't too deep, I found it in the documentation on his site:

Quote: "eventData and eventDataEx return additional information about the event which occurred. For example with a MOUSE_MOVE event eventData returns the mouse buttons which were being pressed at the time."


[edit]
I should read more, this posting isn't very helpful hehe. Sorry, I just noticed you mentioned what I suggested.

1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 26th Nov 2005 23:01
For problems like this I like using a program called API Viewer. This is a great program that you should google. That program will allow you to see many functions of the dll's of Microsoft Windows but will also show you constants of events in Microsoft Windows which is what you are looking for.

All the events that RobK has in his documentation were taken from constants of the system and all of those events have the prefix of WM_ or short for windows messages.

What you need to do is catch a key press WM_ event type (look in APIViewer for the constant numbers) and then find out the event data.


Sorry if this post seems all jumbled up, but if you find API Viewer and look for WM_constants you should half-ways understand what I am talking about.


Regards,
1tg46

Reality is an illusion brought on by the absence of alcohol - this is not a literal statement

Look for me at The Code Project
Wolfhound
19
Years of Service
User Offline
Joined: 14th Oct 2005
Location: Paddy\'s Green Shamrock Shore
Posted: 28th Nov 2005 14:11
Thanks 1tg46 - I'll follow that thought and see how far I get.

Reality is grossly over-rated.

Login to post a reply

Server time is: 2024-11-21 18:20:21
Your offset time is: 2024-11-21 18:20:21