shortcut

Creating new shortcut in notepad++

会有一股神秘感。 提交于 2019-12-05 23:25:06
问题 I am trying to add a shortcut or a button in notepad++ to call an external program on the file I am currently editing. For example, let's say I have the program " analyzer.jar ". I would like to create a button (or shortcut) in notepad++ that would directly run the command " cmd -K java -jar analyzer.jar "$(FULL_CURRENT_PATH) ". Since I haven't found any solution yet, any help would be deeply appreciated :). 回答1: Well, in fact I found how easy it is to create a shortcut for a command: Go in

Creating shortcut links (.lnk) from Java

女生的网名这么多〃 提交于 2019-12-05 21:24:32
I am writing an installer (launcher) in Java and require the ability to be able to create a shortcut on the users desktop during the process. I am interested in any ideas as the best way to do this. My one option I have considered is using a VB Script on windows and using the native 'shortcut.exe' to do it for me, however a third party file utility would be preferred. /** * Create an Internet shortcut * @param name name of the shortcut * @param where location of the shortcut * @param target URL * @param icon URL (ex. http://www.server.com/favicon.ico) * @throws IOException */ public static

“Wrong” app gets pinned to taskbar (Windows 7)

≯℡__Kan透↙ 提交于 2019-12-05 19:57:35
I have an application that gets started via a shortcut. This application than starts a Java GUI application with CreateProcess(). When the Java application gets pinned to the taskbar the javaw.exe gets pinned to the taskbar instead of the "expected" shortcut. Only the native executable which launches Java can be modified - the shortcut has to stay. What has to be done so that the shortcut gets pinned? Thanks, Stefan Use something like winrun4j or create a .bat instead of using a shortcut. There is a Java library providing the new Windows 7 features for Java. It's called J7Goodies by Strix Code

Eclipse CTRL+A, CTRL+E go to beginning go to end of line

只谈情不闲聊 提交于 2019-12-05 19:04:42
问题 I searched and was very surprised that I can't find a possibility to make CTRL + A , CTRL + E work. So I can jump to the beginning or end of the line. I'm working on a Mac and don't have Pos1 or Home Button on my keyboard. I'm pretty used to it, because everywhere I need it, it exists, not so in eclipse. 回答1: When you set custom keys in eclipse - just make sure that the keys you assign are not already assigned to different actions. e.g. enter "ctrl+a" into the filter field and "unbind" the

How to remap keyboard key in c++ with LowLevelKeyboardProc?

两盒软妹~` 提交于 2019-12-05 18:53:23
I need to remap some of keys like Left Alt but i just disable it so code for disable Left Alt look like this: LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam) { if (nCode == HC_ACTION) { KBDLLHOOKSTRUCT* p = (KBDLLHOOKSTRUCT*) lParam; if (p->vkCode == VK_LMENU) return 1; } return CallNextHookEx(hHook, nCode, wParam, lParam); } So I try to remap Left Alt to Left Ctrl and use function like keybd_event and SendMessageA but didn't get nothing. LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam) { if (nCode == HC_ACTION) { KBDLLHOOKSTRUCT* p

How can you create Alt shortcuts in a Windows Forms application?

ぃ、小莉子 提交于 2019-12-05 16:16:13
问题 I'd like to create keyboard shortcuts for some controls in my Windows Forms application. Example: Notice the underlined, F E V P B. I have a label and a textbox control. I'd like to associate that Alt keyboard shortcut to the label and the textbox. So if someone presses Alt + B , focus is given to the associated textbox. Is there a way to create this association? 回答1: When the label receives focus from pressing its accelerator key (set using the & ), it forwards the focus to the next control

How do you add access keys (shortcuts) to a WPF ContextMenu, programmatically?

99封情书 提交于 2019-12-05 14:59:15
I already have the following: var myContextMenu = new System.Windows.Controls.ContextMenu(); var exitItem = new MenuItem(); exitItem.Header = "E_xit"; exitItem.Item.Click += new RoutedEventHandler(new System.EventHandler(ExitProgram)); myContextMenu.Items.Add(exitItem); This causes my context menu to display the Exit menu item, with an underlined "x". However, pressing x does nothing. Clicking the menu item works fine. How can I associate an event with the x key? Please note that this has to be done programmatically in my context. I cannot compose this solution in the XAML in front. The usual

WOW64 woes (.lnk shortcuts)

*爱你&永不变心* 提交于 2019-12-05 12:30:05
I'm using Windows 7 (x64) and Delphi 2010. I'm writing a component that will emulate the start menu. However, I've run into the following problems: If I attempt to open a shortcut (.lnk file) with ShellExecute , this will fail whenever %ProgramFiles% is part of the target path of the shortcut (it will then look at the C:\Program Files (x86) folder instead of C:\Program Files ); ShGetFileInfo fails to extract the correct index of the icon in the system image list if %ProgramFiles% is part of the path to the icon file (same problem as above). Is there any workaround to the above issues or do I

How to set “Run as administrator” flag on shortcut created by MSI installer

萝らか妹 提交于 2019-12-05 06:15:20
问题 I have a Setup and Deployment project in Visual Studio 2010. I would like the installer to create two shortcuts to the executable of another project in my solution. One normal shortcut that simply runs the application using current credentials and another which has the Run as administrator flag set, thereby ensuring that the user is asked for credentials with administrative rights when clicking the shortcut. Running the application with administrative rights enables certain features that are

Nested overrides in portal_skins folder

三世轮回 提交于 2019-12-05 04:18:36
How one could override files in nested portal_skins folder? The default behavior seems to be that you need to copy whole folder structures if you want to override a single file. This is a maintenance nightmare. E.g. how to override file: Producs.TinyMCE/skins/tinymce/plugins/table/js/table.js ... without needing to create a duplicate for the whole Products.TinyMCE skins codebase? Use z3c.jbot , and put a file in your jbot template directory called Products.TinyMCE.skins.tinymce.plugins.table.js.table.js You cannot override parts of a nested skins folder structure. If you want to customize