 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
bmcclure
Joined: 24 Nov 2007 Posts: 774
|
Posted: Thu Dec 06, 2007 6:25 am Post subject: |
|
|
| lexikos wrote: | | Maybe by calling SetSysColors as you receive hilight notifications (assuming MMenu gives those?) |
| majkinetor wrote: | | You can see it on the picture on first page. |
I'm still figuring out SetSysColors. It seems it can do what I need, but is there a way I can change it for just the menu, or just my script, without affecting other windows? Can I run SetSysColors, show the highlight, then run SetSysColors to change them back immediately, or does the function change all active windows when it runs?
Perhaps my best solution would be to intercept the highlight messages and change the menu item's colors OnMessage instead of using actual highlights? If that is even possible. I'll have to think about that for a few. _________________ Ben
My Trac projects
My Wiki
[Broken] - My music |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 7299 Location: Australia
|
Posted: Thu Dec 06, 2007 6:47 am Post subject: |
|
|
| bmcclure wrote: | | I'm still figuring out SetSysColors. It seems it can do what I need, but is there a way I can change it for just the menu, or just my script, without affecting other windows? Can I run SetSysColors, show the highlight, then run SetSysColors to change them back immediately, or does the function change all active windows when it runs? | I think you'd have to wait 'til the menu closes (or the item is un-highlighted) before changing the highlight colour back.
| SetSysColors wrote: | | The SetSysColors function sends a WM_SYSCOLORCHANGE message to all windows to inform them of the change in color. It also directs the system to repaint the affected portions of all currently visible windows. |
The alternative is to read up on GDI and owner-drawn menus. |
|
| Back to top |
|
 |
bmcclure
Joined: 24 Nov 2007 Posts: 774
|
Posted: Thu Dec 06, 2007 7:29 am Post subject: |
|
|
Please excuse me for being naive, but does MMenu use owner-drawn menus, or do you mean read up on owner drawn menus as a replacement for MMenu?
Aside from the selection colors, I'm really happy with MMenu, so going to test SetSysColors to see the performance, or perhaps investigate removing the selection boxes and faking them somehow if this is possible. _________________ Ben
My Trac projects
My Wiki
[Broken] - My music |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 7299 Location: Australia
|
Posted: Thu Dec 06, 2007 10:36 am Post subject: |
|
|
| bmcclure wrote: | | Please excuse me for being naive, but does MMenu use owner-drawn menus, or do you mean read up on owner drawn menus as a replacement for MMenu? | I think MMenu uses owner-drawn menu item bitmaps. To customize colours (and even shape/layout) fully, you need to owner-draw the entire menu. You could modify MMenu rather than replacing it. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Thu Dec 06, 2007 10:59 am Post subject: |
|
|
Yes. Lex is right.
Entirely owner-drown menu rocked, but as of AHK message droping it was randomly not displaying items. It looked really cool, you were able to set everything PER ITEM. I droped it but now, after RegisterCallback, I might return to it. _________________
 |
|
| Back to top |
|
 |
bmcclure
Joined: 24 Nov 2007 Posts: 774
|
Posted: Thu Dec 06, 2007 3:27 pm Post subject: |
|
|
majkinetor,
Sounds very promising! Any ETA on when you might take a shot at it? Anything I can do to help? Thanks! _________________ Ben
My Trac projects
My Wiki
[Broken] - My music |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Thu Dec 06, 2007 5:28 pm Post subject: |
|
|
no ETA for now.
But I have images of my previous work. This is how it was looking like:
Every item was separately customizable, with the very same API as in MMenu now (everything was optional), including the hightlighting color.
Notice the "named separators" and different font and icon size for some items _________________
 |
|
| Back to top |
|
 |
bmcclure
Joined: 24 Nov 2007 Posts: 774
|
Posted: Thu Dec 06, 2007 7:04 pm Post subject: |
|
|
Wow, I can hardly wait for that functionality to be available again
But in the meantime, I'm quite happy with my menu using the current MMenu implementation. It already lets me do more than I originally hoped would be possible  _________________ Ben
My Trac projects
My Wiki
[Broken] - My music |
|
| Back to top |
|
 |
buggy Guest
|
Posted: Sun Dec 30, 2007 9:32 am Post subject: "DirKey Mode" |
|
|
Hi majkinetor,
FavMenu is great, thank you! I just wondered, do you know DirKey? http://www.protonfx.com/dirkey/
What is missing from FavMenu is a "DirKey-Mode" where you can distinguish between the following example cases:
- case 1: pressing CTRL-1 in a supported window navigates to the "1"-shortcut path
- case 2: pressing CTRL-WIN-1 (wherever, supported window or not) pops up a NEW explorer window at the desired path (no reuse of existing explorer windows in the background)
...FavMenu stays invisible all time for both of the cases
I also noticed that the support of command line windows is language dependent as you check for a certain "echo" output - but I don't have a better idea either.
-----
One more question: where are the icons from? I'm looking for good free icons and the ones you regularly use are great!
greetings, buggy |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Sun Dec 30, 2007 11:35 am Post subject: |
|
|
Its all supported in favmenu. New window is called new tab and you open it in TC and Explorer by using SHIFT Click.
BTW, this is MMenu not Favmenu
You probably don't know 10% of features of Favmenu, but if you learn it (FM3 features are not yet well documented and FM3 itself isn't released but there are links here and there), you will see that other similar apps are not comperable to it.
FM3 will soon be released so documentation will be updated. _________________
 |
|
| Back to top |
|
 |
buggy Guest
|
Posted: Sun Dec 30, 2007 1:27 pm Post subject: |
|
|
Hi majkinetor,
I'll write back here though this is not about Favmenu:
I understand you support it but there is no mode like I explained, is it? I use version 3b1 and did not find any way to do it the way I explained.
Anyway, I have a bugfix for you: in 3b1 tha constant FavMenu_cOffice wasn't defined, thus it didn't work for Office 2007 open/close.
Where do you get these nice icons from, are they free?
greetings, buggy |
|
| Back to top |
|
 |
buggy Guest
|
Posted: Sun Dec 30, 2007 1:29 pm Post subject: |
|
|
I forgot: constant FavMenu_cOffice should prolly be set to something along the lines of "bosa_sdm_" - this way you don't have to search yourself.
where do you get these nice icons from, are they free?
greetings, buggy |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4511 Location: Belgrade
|
Posted: Sun Dec 30, 2007 3:24 pm Post subject: |
|
|
Hello buggy.
Why are you posting here ? There is Favmenu 2 thread and Favmenu 1 thread, all are better then this.
| Quote: | | FavMenu_cOffice wasn't defined, |
Thats not true. Its defined in messages.ahk as
| Code: | FavMenu_cOffice = bosa_sdm_Microsoft Office Word 11.0,bosa_sdm_Mso96,bosa_sdm_XL9,bosa_sdm_Microsoft Office Word 12.0
|
| Quote: | | Where do you get these nice icons from, are they free? |
Probably stuff from WinCustomize. I don't remember.
Cu. _________________
 |
|
| Back to top |
|
 |
Erittaf
Joined: 02 Nov 2007 Posts: 188
|
Posted: Tue Jan 15, 2008 10:56 pm Post subject: |
|
|
Is it possible for MMenu to replace my tray icon menu?
I have a script that does not have a gui after the initial screen where I enter user data. The script is meant to run for days and continuously. This causes some problems when I need to access one of the tray menu options I have set up because the ahk tray menu will pause the script.
MMenu looks like a good solution but I can't figure out how to activate MMenu instead of the standard menu when I right click on my tray icon. |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 7299 Location: Australia
|
Posted: Tue Jan 15, 2008 11:23 pm Post subject: |
|
|
Hook AHK_NOTIFYICON.
| Code: | Menu, M, Add, Note that this is, Exit ; replace with MMenu.
Menu, M, Add, NOT the tray menu., Exit
OnMessage(0x404, "AHK_NOTIFYICON")
return
AHK_NOTIFYICON(wParam, lParam)
{
if (lParam = 0x205) ; WM_RBUTTONUP
{
SetTimer, ShowRbuttonMenu, -1
return 0
}
}
ShowRbuttonMenu:
Menu, M, Show ; replace this with MMenu.
return
Exit:
ExitApp
|
Alternately, use majkinetor's Tray module. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|