not-me Posted April 4, 2013 Share Posted April 4, 2013 Hi all, Please i want to know to enable then click on a disabled (grayed) item in submenu. like the attached pic.i want to enable the second menu. Link to comment Share on other sites More sharing options...
FireFox Posted April 4, 2013 Share Posted April 4, 2013 Hi, Your thumbnail looks like an example Form, why ? Br, FireFox. Link to comment Share on other sites More sharing options...
not-me Posted April 4, 2013 Author Share Posted April 4, 2013 (edited) I just want to know the way to do that. I create this form as an example. Edited April 4, 2013 by not-me Link to comment Share on other sites More sharing options...
FireFox Posted April 4, 2013 Share Posted April 4, 2013 (edited) Here you go : #include <GUIMenu.au3> $hMenu = _GUICtrlMenu_GetMenu(WinGetHandle("Form1")) ;will return the handle of the latest menu, ;if there is more than one menu and you want to target the first one, ;you will need to use the _GUICtrlMenu_GetItemSubMenu function with the menu handle and the item 0. _GUICtrlMenu_EnableMenuItem($hMenu, 1, 0) Br, FireFox. Edited April 4, 2013 by FireFox Link to comment Share on other sites More sharing options...
PhoenixXL Posted April 4, 2013 Share Posted April 4, 2013 It must be of any program which you want to automate. Then you should know what's going on under the hood of the respective program because grayed item signifies that the condition for the respectable function/operations is not possible at the moment. Either you should do get something which enables it through the program or ask somewhere in the helpforum of that particular software Regards My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
FireFox Posted April 4, 2013 Share Posted April 4, 2013 grayed item signifies that the condition for the respectable function/operations is not possible at the moment.His goal may be illegal but it's not my business. Link to comment Share on other sites More sharing options...
PhoenixXL Posted April 4, 2013 Share Posted April 4, 2013 His goal may be illegal but it's not my business.That's not even my point, the thing is the function won't be processed as required - I guess My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
FireFox Posted April 4, 2013 Share Posted April 4, 2013 (edited) That's not even my point, the thing is the function won't be processed as required - I guess Well, I don't think so. What I meant is a locked feature which is enabled only if the product is registered. And in most cases there is nothing to check if the product is registered or not because the control is supposed to be disabled. Edited April 4, 2013 by FireFox Link to comment Share on other sites More sharing options...
PhoenixXL Posted April 5, 2013 Share Posted April 5, 2013 Point. FireFox 1 My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
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