AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 132 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9
Author Message
 Post subject:
PostPosted: December 4th, 2011, 4:55 pm 
Offline

Joined: December 2nd, 2011, 4:41 pm
Posts: 57
Who's good and will make a function to quickly add icons to a menu?
if exists one or is posted here, sorry for asking but is very nessy to apply this to a menu :P


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2011, 10:25 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Anonymous wrote:
The first one is the ICONINFO structure and the second one is the tagBITMAP structure.
That's right.
Quote:
And is lParam also a BITMAP structure?
The meaning of lParam depends on which message is being received.
iBob35555VR wrote:
sorry for asking but is very nessy to apply this to a menu :P
How so?

Your choices are:
  • Use this script.
  • Write your own.
  • Use AutoHotkey_L's built-in menu icon support.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2011, 11:06 pm 
I see. Thanks.
Lexikos wrote:
The meaning of lParam depends on which message is being received.
What is the meaning of lParam in the following part? It looks like a structure. If so, what structure is it?
Code:
            NumPut(NumGet(buf,4,"int")+2, lParam+12) ; width
            NumPut(NumGet(buf,8,"int")  , lParam+16) ; height

Also what is the meaning of lParam in the following? It also looks like a structure but I don't find what it is.
Code:
        hdcDest := NumGet(lParam+24)
        x       := NumGet(lParam+28)
        y       := NumGet(lParam+32)
        h_icon  := NumGet(lParam+44)

Should the number 16 in the following be the same on x64?
Code:
    else if (Msg = WM_COMMAND && !(wParam>>16)) ; (clicked a menu item)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2011, 1:08 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Remember how I said I wasn't interested? You should be able to answer these questions yourself with a little effort. As I said, the meaning of lParam depends on which message is being received. So, which messages are being received? Similarly, wParam depends on the message. So what does wParam mean with WM_COMMAND?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2011, 1:40 am 
Lexikos wrote:
Remember how I said I wasn't interested?
You weren't interested in supporting this script because you thought the functionality had been implemented into AutoHotkey_L. Actually I disagree with it. AutoHotkey_L does not support showing menu icons with icon handlers (hIcon).
Quote:
You should be able to answer these questions yourself with a little effort
If it were a little effort, I wouldn't have asked you.
Quote:
which messages are being received?
How do I figure it? The lines related to the MI_OwnerDrawnMenuItemWndProc() function seem to be:
  • return DllCall("SetWindowLong","uint",hwnd,"int",-4,"int",wndProc,"uint")
  • NumPut(wndProc, wc, 4) ; lpfnWndProc
  • DllCall("GlobalFree","uint",wndProc)
Quote:
Similarly, wParam depends on the message. So what does wParam mean with WM_COMMAND?
Does it mean 0x111? But I have no ideas what 0x111 means and how it is related to the expression of wParam>>16.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2011, 2:25 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Anonymous wrote:
Actually I disagree with it. AutoHotkey_L does not support showing menu icons with icon handlers (hIcon).
I added icon support to AutoHotkey_L as a replacement for this script. Why then would I ever want to work on this script again? If the built-in icon support is missing features, that can be rectified.
Quote:
Does it mean 0x111?
That is the value of WM_COMMAND, not the meaning of wParam. The meaning of wParam, as of any message parameter, is documented on the page for that message, at MSDN.

I don't have the patience or inclination to continue this, so I suggest you post in Ask for Help, where it is more likely someone else will help you.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2011, 2:40 am 
Lexikos wrote:
Why then would I ever want to work on this script again?
If you ever find the reason, it will be because this script has a feature that AutoHotkey_L is missing.
Quote:
If the built-in icon support is missing features, that can be rectified.
Specifying a menu icon with icon handler is not currently possible in AutoHotkey_L while it is possible with this script. The hIcon feature is missing. Do you think it can be rectified?
Quote:
I don't have the patience or inclination to continue this, so I suggest you post in Ask for Help, where it is more likely someone else will help you.
The questions were directly related to the script so it is appropriate to be posted in this thread. However, I don't intend to bother you so I'll post further technical questions in Ask for Help.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2012, 1:46 pm 
Offline

Joined: October 11th, 2010, 12:30 pm
Posts: 406
I'm sorry if it's replied beforehand, I checked out but couldn't find it, how can I extract icon in systray to a file?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2012, 2:02 pm 
kenn wrote:
I'm sorry if it's replied beforehand, I checked out but couldn't find it, how can I extract icon in systray to a file?
Which icon are you talking about? The script icon or other program icons? This library is not for saving icons anyway.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2012, 2:17 pm 
Offline

Joined: October 11th, 2010, 12:30 pm
Posts: 406
Other program icons. I'm lost. I tried a few scripts to get icon handle and tried to extract it, I failed. It must be simple, I just don't know how.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2012, 3:14 pm 
The library is not for that task. Go to Ask for Help.


Report this post
Top
  
Reply with quote  
 Post subject: Re: Menu Icons v2
PostPosted: April 29th, 2012, 1:40 pm 
Offline

Joined: April 29th, 2012, 1:35 pm
Posts: 1
Location: Germany
Hello,

i used your script for my little Menü/programm. Thanks for it.
I see the icons in my Menü on Windows 7, no problems.

But, Windows XP, i don't see the icons. Why?

Can you help? What can i do? I would like see the icons on WIndows XP.

Thanks!


Dear
Picard


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 132 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9

All times are UTC [ DST ]


Who is online

Users browsing this forum: Aravind, Google Feedfetcher, sks, Stigg and 12 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