shortcut

Create shortcut from vb.net on Windows 7 box (64 bit)

柔情痞子 提交于 2019-12-11 01:22:21
问题 I am trying to create a desktop shortcut from vb.net code on a Windows 7 box (64 bit). The following code works on XP, but when run on Win7 I just get a message stating the App has stopped working: Imports IWshRuntimeLibrary Dim WshShell As WshShellClass = New WshShellClass Dim MyShortcut As IWshRuntimeLibrary.IWshShortcut ' The shortcut will be created on the desktop 'Win 7 MyShortcut = CType(WshShell.CreateShortcut("C:\Users\Public\Desktop\iexplore.lnk"), IWshRuntimeLibrary.IWshShortcut)

Java JOptionPane.showConfirmDialog hot key

冷暖自知 提交于 2019-12-10 17:25:29
问题 I am displaying a confirmation dialog in Java using JOptionPane.showConfirmDialog. The dialog shows a Yes No confirmation to the user. This is called as follows: int result = JOptionPane.showConfirmDialog(sessionObjects.getActiveComponent(), "Are you sure you want to exit?", "My App", JOptionPane.YES_NO_OPTION); The question is as this is a simple confirmation, can the user press y for yes and n for no? At present the user has to click on the buttons? Thanks, Andez 回答1: You already have

In Wix can an advertised shortcut use the icon from a systems file association?

限于喜欢 提交于 2019-12-10 09:58:58
问题 A question is about Wix and setting the icon of an advertised shortcut: If your installer contains a manual, or document in say .pdf format and you want to create a shortcut to the PDF file. Is it possible to use an icon for the shortcut based on the systems file associations? e.g. User has Adobe reader, the shortcut gets adobe pdf icon. User has Foxit/Other reader, the shortcut gets that program icon instead. etc. 回答1: As far as I understand the installer magic, this is not possible. This

Nested overrides in portal_skins folder

匆匆过客 提交于 2019-12-10 04:05:18
问题 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? 回答1: Use z3c.jbot, and put a file in your jbot template directory called Products.TinyMCE.skins.tinymce.plugins

Rearrange Code shortcut in Resharper doesn't work in VS2015

纵然是瞬间 提交于 2019-12-09 18:38:03
问题 When I try to use the shortcut for moving lines up/down ( Ctrl + Alt + Shift + ↑ / ↓ ), it highlights the code and shows the tooltip message "Use Up/Down to move text line" but nothing happens. If however I try the same command via the menu bar (Resharper > Edit > Rearrange Code > Move Up) it moves the selected lines as expected. I used to use this feature all the time so I find this bug very annoying. Apparantly, others also experience this (see comments for Resharper move line up down not

How to install a desktop shortcut (to a batch file) from a WiX-based installer that has “Run as Administrator” enabled?

送分小仙女□ 提交于 2019-12-09 11:29:27
问题 I'm installing a desktop shortcut (to a batch file) from a WiX-based installer -- how do I automatically configure this shortcut with the "Run as Administrator" setting enabled? The target OS is Windows Server 2008 R2, and the installer is running with elevated priveleges. Update: Thanks to the link provided by @Anders, I was able to get this working. I needed to do this in a C# CustomAction, so here is the C# version of the code: namespace CustomAction1 { public class CustomAction1 { public

Creating a shortcut: how can I work with a drawable as Icon?

天大地大妈咪最大 提交于 2019-12-09 04:50:26
问题 Below is My code to create a shortcut to a selected application. I have really no problem and the application work quite well. The problem is that I am able to create a shortcut with a ressource from my application: intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, Intent.ShortcutIconResource.fromContext(this, R.drawable.icon)); But I really would like with a custom drawable. ( Drawable myDrawable=.....) How can I do? ResolveInfo launchable=adapter.getItem(position); final Intent

Shortcut with Ctrl does't work in gvim

人盡茶涼 提交于 2019-12-08 07:00:51
问题 I'm trying to make shortcut for Vim, to make it more suitable for Esperanto when I press Ctrl + W : imap <C-ĝ> <C-w> "Delete last word It works fine with vim but with gvim it just puts ĝ character. How can I make it work with gvim ? Edit: I figured out that it works with vim even without mapping. But I still can't make it work against gvim . 回答1: I'm facing same problem with Cyrillic letters. For example, typing Ctrl + Ы in insert mode results in just Ы . I did some searching and .. looks

Programatically get/set Mac OSX default system keyboard shortcut

▼魔方 西西 提交于 2019-12-08 06:30:20
问题 I'm trying to find a way to programatically get/set the default OSX system keyboard shortcuts (hotkeys) found in the System Preferences -> Keyboard & Mouse -> Keyboard Shortcuts tab. I need to be able to do this in the background, so GUI scripting is not a solution. I'm unable to find a plist or anything where this info might be stored. I tried using Instruments "File Activity" trace while using System Preferences, but again came up empty handed. Any help is appreciated. 回答1: There is an API

Is there a way to trigger a Hot Key/Keyboard Shortcut via a Shell Script, a AppleScript or a Automator Workflow?

眉间皱痕 提交于 2019-12-08 05:17:21
问题 I'm an avid Keyboard Maestro user and I need a workaround for triggering a keyboard shortcut like ⌘⇧L (externally, without Keyboard Maestro). So I thought a bash script would be capable of doing such a thing. An AppleScript or an Automator workflow would be sufficient, too. I anybody could help me this would be great. You don't have to read this, but here's why I want to do what I want to do: I have a the same string assigned to various Markdown macros, I use a string instead of Hotkeys