AutoHotkey Community

It is currently May 25th, 2012, 10:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 149 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9, 10  Next
Author Message
 Post subject:
PostPosted: December 6th, 2007, 7:25 am 
Offline

Joined: November 24th, 2007, 9:07 pm
Posts: 774
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2007, 7:47 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2007, 8:29 am 
Offline

Joined: November 24th, 2007, 9:07 pm
Posts: 774
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2007, 11:36 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2007, 11:59 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2007, 4:27 pm 
Offline

Joined: November 24th, 2007, 9:07 pm
Posts: 774
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2007, 6:28 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
no ETA for now.

But I have images of my previous work. This is how it was looking like:

Image
Image

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

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2007, 8:04 pm 
Offline

Joined: November 24th, 2007, 9:07 pm
Posts: 774
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: "DirKey Mode"
PostPosted: December 30th, 2007, 10:32 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2007, 12:35 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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 :wink:

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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2007, 2:27 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2007, 2:29 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2007, 4:24 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 15th, 2008, 11:56 pm 
Offline

Joined: November 3rd, 2007, 12:41 am
Posts: 188
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 16th, 2008, 12:23 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
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.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: ELengefeld, RaptorX, tidbit, toddintr and 11 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