Emiel Wieldraaijer Posted June 29, 2007 Posted June 29, 2007 EmielYes, i have the same problem (if the text is cirillyc letters that encoded to Utf string), but i do not know how to fix this..If someone know how to fix it, please tell as, thanks.I've send holger an email and he will take a look at it Best regards,Emiel Wieldraaijer
Holger Posted June 30, 2007 Author Posted June 30, 2007 Update 01.07.2007:- now works with unicode (3.2.4.9)See first post for download-file.GreetsHolger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
MrCreatoR Posted July 1, 2007 Posted July 1, 2007 Thanks Holger, you are the best!  Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1  AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ==================================================    AutoIt is simple, subtle, elegant. © AutoIt Team
Holger Posted July 17, 2007 Author Posted July 17, 2007 (edited) Update 17.07.2007:- now you can also use menu icons for the tray- added commands for trayFor info: this is more a workaround which uses GUICtrlCreated menus/items together with the GUIRegisterMsg()See 1st post...GreetsHolger Edited July 17, 2007 by Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
alien13 Posted July 18, 2007 Posted July 18, 2007 This is cool! Good work Holger! Thanks for this alien13
Josbe Posted July 18, 2007 Posted July 18, 2007 Update 17.07.2007:- now you can also use menu icons for the tray- added commands for trayFor info: this is more a workaround which uses GUICtrlCreated menus/items together with the GUIRegisterMsg()See 1st post...GreetsHolgerThanks Holger. • AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
Sunaj Posted July 20, 2007 Posted July 20, 2007 Any chance of a _GUICtrlODMenuItemSetState() to match the new _TrayIconSetState()? (I tried my best but your usage of DllStruct(..) is akin to magic for me at my current programming level)Great updates that you are making on this library Holger, I really appreciate it. Especially the _GUICtrlODMenuItemSetText (that i even requested some months ago) is a lifesaver for me, thanks a lot for that one alone! Cheers,Sunaj [list=1][*]Generic way to detect full path to default browser, List/ListView Events Using GuiRegisterMsg (detect doubleclick and much more)[*]Using dllcall for full control over fileopendialog, Make DirMove act somewhat normally (by circumventing it...)[*]Avoid problems with "&" (chr(38)) in code, Change desktop maximized area/workspace (fx to make deskbar type app)[*]Change focus behavior when buttons are clicked to work closer to 'standard windows' app[*](Context) Menus With Timed Tooltips, Fast Loops & Operators in AU3[*]Clipboard UDF, A clipboard change notification udf[/list]
Holger Posted July 20, 2007 Author Posted July 20, 2007 Just use GUICtrlSetState()GreetsHolger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
Sunaj Posted July 21, 2007 Posted July 21, 2007 (edited) Ok, thanks for your quick reply, it was because I started out trying to use GUICtrlSetState to make a default (bold) text menu item.. Like so: GUICtrlSetState($mItem, $GUI_DEFBUTTON), this is working fine on standard menu items but not on your extended menu. I can make other states such as $GUI_DISABLE..etc. work just fine. Any chance of getting bold text on specific menu items with ModernMenuLib? Just use GUICtrlSetState()GreetsHolgerEdit: speleling fixed Edited July 21, 2007 by Sunaj [list=1][*]Generic way to detect full path to default browser, List/ListView Events Using GuiRegisterMsg (detect doubleclick and much more)[*]Using dllcall for full control over fileopendialog, Make DirMove act somewhat normally (by circumventing it...)[*]Avoid problems with "&" (chr(38)) in code, Change desktop maximized area/workspace (fx to make deskbar type app)[*]Change focus behavior when buttons are clicked to work closer to 'standard windows' app[*](Context) Menus With Timed Tooltips, Fast Loops & Operators in AU3[*]Clipboard UDF, A clipboard change notification udf[/list]
Holger Posted July 21, 2007 Author Posted July 21, 2007 (edited) Update 21.07.2007- added bold item support - with GUICtrlSetState($item, $GUI_DEFBUTTON)-> limited to menuitems only, menus are not supported! Edited July 21, 2007 by Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
Sunaj Posted July 21, 2007 Posted July 21, 2007 Wohaa, that is what I call -fast- work, it is working just perfect for me. Thank you ever so much! Update 21.07.2007- added bold item support - with GUICtrlSetState($item, $GUI_DEFBUTTON)-> limited to menuitems only, menus are not supported! [list=1][*]Generic way to detect full path to default browser, List/ListView Events Using GuiRegisterMsg (detect doubleclick and much more)[*]Using dllcall for full control over fileopendialog, Make DirMove act somewhat normally (by circumventing it...)[*]Avoid problems with "&" (chr(38)) in code, Change desktop maximized area/workspace (fx to make deskbar type app)[*]Change focus behavior when buttons are clicked to work closer to 'standard windows' app[*](Context) Menus With Timed Tooltips, Fast Loops & Operators in AU3[*]Clipboard UDF, A clipboard change notification udf[/list]
SleepyXtreme Posted July 24, 2007 Posted July 24, 2007 I get an error when i try to work the tray with icons
kjason Posted July 25, 2007 Posted July 25, 2007 (edited) Hi? This is a really good script. Now, I am studying on it and it works great!! I have one question. _TrayTip($nTrayIcon1,"Information", "Now, new tray icon available ", 1,$NIIF_INFO) in this script, the Tray balloon tip last too long. How can I reduce the time of balloon tip up? Your help would be very appreciated. Edited July 25, 2007 by kjason
Holger Posted July 25, 2007 Author Posted July 25, 2007 @Sleepy: with the 'TrayClick' I will take a look how to make it work. The "I get an error when i try to work the tray with icons" you should explain a little bit more...with thisone I don't understand what your problem is. @kjason: from MSDN: "The system minimum and maximum timeout values are currently set at 10 seconds and 30 seconds, respectively" So, if you set a timeout of 5sec it will be changed by system to 10 and i.e. if you use 40sec it will be changed to 30. Greets Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
SleepyXtreme Posted July 26, 2007 Posted July 26, 2007 download what you posted, and try to compile it with scite. it comes up with numerous errors.
nobbe Posted July 26, 2007 Posted July 26, 2007 hi holger nice work but when i compile the sample sampleGUIandTray-unicode.au3 everything looks nie but when i compile the "non unicode" version (sampleGUIandTray.au3), where i see no difference in code - i get an error which i dont understand H:\autoit\menu lib - tray menu\ModernMenu.au3(449,33) : ERROR: LoadIcon(): undefined function. $hIcon = LoadIcon(0, $nIconID) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ H:\autoit\menu lib - tray menu\sampleGUIandTray.au3 - 1 error(s), 0 warning(s) mfg nob
Holger Posted July 26, 2007 Author Posted July 26, 2007 Updated- Fixed: missing LoadIcon()Thank you both for info (Sleepy and nobbe).If you don't want to download it again just add the following code at the end of the "ModernMenu.au3":Func LoadIcon($hInstance, $nIcon) Local $hIcon = DllCall("user32.dll", "hwnd", "LoadIcon", _ "hwnd", $hInstance, _ "int", $nIcon) Return $hIcon[0] EndFuncThis was a merging error (the merging of my old ModernMenu with the TrayMenu).GreetsHolger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
Bert Posted July 26, 2007 Posted July 26, 2007 I'm adding this to my collection of cool stuff. Outstanding work! The Vollatran project  My blog: http://www.vollysinterestingshit.com/
nobbe Posted July 27, 2007 Posted July 27, 2007 hi holger great job! i have already used it in my new program one thing that i try to figure out is: when setting an icon resource from shell32.dll $AboutItem = _GUICtrlCreateODMenuItem ("About...", $HelpMenu, "shell32.dll", 23) ; --> 24-1 in reshacker icon group the icon index doesnt correspond to the function $icon = GUICtrlCreateIcon ("shell32.dll", 23, 20,20) which now displays a different icon resource the only thing i could figure out is with "reshacker " i go to icon groups and now the icon resource on the above would be iconindex-1 do you think there is a way to syncronize with the "GUICtrlCreateIcon " function to figure out the icons more quickly? mfg nobbe
SleepyXtreme Posted July 27, 2007 Posted July 27, 2007 (edited) i now get this error: ModernMenu.au3(1556,174) : ERROR: CreateFont() called by a previous line with 1 arg(s). Min = 14. First previous line calling this Func is 1433. Func CreateFont($nHeight, $nWidth, $nEscape, $nOrientn, $fnWeight, $bItalic, $bUnderline, $bStrikeout, $nCharset, $nOutputPrec, $nClipPrec, $nQuality, $nPitch, $ptrFontName) Also, How do you make it so when you click the tray icon, it executes a function, not opens a menu. Edited July 27, 2007 by SleepyXtreme
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now