sandman Posted August 26, 2007 Share Posted August 26, 2007 (edited) How can I make my menu show a shortcut key with an item, like this:(Sorry for the bad circle.)Thanks!-sandman Edited August 26, 2007 by sandman [center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center] Link to comment Share on other sites More sharing options...
Generator Posted August 27, 2007 Share Posted August 27, 2007 I guess you just type them Link to comment Share on other sites More sharing options...
sandman Posted August 27, 2007 Author Share Posted August 27, 2007 But they seem aligned, like there was some special way to put them there.. don't they? [center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center] Link to comment Share on other sites More sharing options...
sandman Posted August 27, 2007 Author Share Posted August 27, 2007 I found the solution!! When you are doing the GUICtrlCreateMenuItem(), inside the Data press Tab, then put the shortcut. Example:$menufilenew = GUICtrlCreateMenuItem("New Ctrl+N", $menufile)They will be automatically aligned. [center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center] Link to comment Share on other sites More sharing options...
Generator Posted August 27, 2007 Share Posted August 27, 2007 I found the solution!! When you are doing the GUICtrlCreateMenuItem(), inside the Data press Tab, then put the shortcut. Example:$menufilenew = GUICtrlCreateMenuItem("New Ctrl+N", $menufile)They will be automatically aligned.Good thing to know, thanks Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 27, 2007 Share Posted August 27, 2007 That should be listed in the help file. Link to comment Share on other sites More sharing options...
Gif Posted August 27, 2007 Share Posted August 27, 2007 That should be listed in the help file. you can also do: GUICtrlCreateMenuItem("New"&@TAB&"Ctrl+N", $menufile) but there is an issue, whether you use @TAB or just your keyboard tab, if i do it twice i come up with this: Link to comment Share on other sites More sharing options...
MrCreatoR Posted August 27, 2007 Share Posted August 27, 2007 That should be listed in the help file.Why?Programming is involve some thinking for creativity 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 Link to comment Share on other sites More sharing options...
sandman Posted August 27, 2007 Author Share Posted August 27, 2007 but there is an issue, whether you use @TAB or just your keyboard tab, if i do it twice i come up with this:That's why you only do it once. [center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center] Link to comment Share on other sites More sharing options...
LeCarre Posted August 30, 2011 Share Posted August 30, 2011 Hmm, I did figure out how to use the TAB to auto align, but how the heck do you get the menu to respond to the keystroke, Hotkeys work in a fashion but, Shortcut CTRL-N for a New Window will make my new window even if my app is in the background. Add a check to make sure app is in the forground, and woot, now CTRL-N is hogged by my app and all others apps menu's become DOA. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 30, 2011 Moderators Share Posted August 30, 2011 LeCarre, Look at GUISetAccelerators in the Help file. They work in a similar manner to HotKeys but are only active when your GUI is focused. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
LeCarre Posted August 30, 2011 Share Posted August 30, 2011 Took me longer to get it to work (at 5am) , than it did for you to respond Tanks 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