AutoHotkey Community

It is currently May 27th, 2012, 8:29 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: March 30th, 2006, 8:43 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
In the list of values there is a duplicate:
Quote:
0x20A WM_MOUSELAST ( -> wrong)
0x20A WM_MOUSEWHEEL


WinUser.h defines them as:
Quote:
#define WM_MOUSEWHEEL 0x020A
#define WM_MOUSELAST 0x020D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 30th, 2006, 8:53 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Thanks; I'll fix that.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 30th, 2006, 9:37 pm 
Offline

Joined: September 25th, 2005, 4:31 pm
Posts: 610
First, WM_MOUSELAST does not seem to be documented. What is it?

Second, the associated value varies by Windows version:

winuser.h wrote:
#if (_WIN32_WINNT >= 0x0500)
#define WM_MOUSELAST 0x020D
#elif (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
#define WM_MOUSELAST 0x020A
#else
#define WM_MOUSELAST 0x0209
#endif


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 30th, 2006, 10:11 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
I have no idea what it is either and couldn't find any real info on it - I only noticed because I searched the window list for the code for WM_MOUSEWHEEL and that was the first result.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 30th, 2006, 10:56 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
So, given its semi random nature, perhaps it is best just to remove it...

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 31st, 2006, 2:05 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
My thoughts exactly, which is why I removed it. I also removed a couple others that are similar.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 31st, 2006, 3:21 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
Perhaps it would also be possible to divide the list up into some kind of sections? They seem to be mostly grouped together as it is, so I don't propose changing the order of the list, just adding some section names or simply leaving a few blank lines between each "section" - e.g. there's a section of messages that relate to the mouse, the clipboard, etc. It'd make it a lot easier to scan over the list, or to learn what is capable from messages for people new to them. (I had the idea after overlooking the WM_DEVICECHANGE message)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 31st, 2006, 3:24 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
evl wrote:
Perhaps it would also be possible to divide the list up into some kind of sections?
Thanks for being volunteer for that... :-P

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 31st, 2006, 5:09 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
I probably could try, although I'm somewhat new to messages still and would have to look up a lot to be sure. I don't think it would take Chris even a couple of minutes to make a few logical breaks in the list (at the minimum, or adding some section names)... and Chris said he took out some other entries from the list so no point trying anything yet with the current list.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 31st, 2006, 5:29 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Thanks. I've added a few blank lines to break it into sections.

A reformatting of that list is on the to-do list. It's one of those things among dozens of other small tasks that tends to get deferred a lot.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 31st, 2006, 7:26 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
That's great :D I'm sure other people would offer to help too with these little documentation things if it frees up your time for the bigger tasks which us mere mortals are unable to do :lol:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2010, 9:17 pm 
evl wrote:
I have no idea what it is either and couldn't find any real info on it - I only noticed because I searched the window list for the code for WM_MOUSEWHEEL and that was the first result.

Code:
PeekMessage(message, hWnd, WM_MOUSEFIRST, WM_MOUSELAST, PM_REMOVE)

To check whether a mouse key was pressed through a windows dll.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group