shortcut

Check for existence of a shortcut pointing to a specific target in Inno Setup

左心房为你撑大大i 提交于 2019-12-06 07:32:06
In my Inno Setup installer I need to make sure a shortcut to a certain file is present in a folder. The name of the shortcut is arbitrary and not under my control. I only know which file it needs to point to. If the shortcut is missing, I need to generate the shortcut. If it is already present, it must not be created again. I guess that it is somehow possible to iterate through all shortcut files in the relevant folder and check which file they point to. In a comment to an answer to Shared Shortcuts/Icons , a IShellLink interface is mentioned, but I don’t know how to make it available in the

add my app to the “add shortcut” list to have a shortcut on homescreen

那年仲夏 提交于 2019-12-06 05:26:26
As you know when you long press on the home screen, the phone shows up a list menu. You can add shortcuts, widgets, Folders, etc. I would like my app to be in the shortcut list. How can I do that? That functionality is already there by default, they just have to choose from the "Applications" list. You can't add directly to the main shortcuts list (it would get far too cluttered quickly), that's provisioned by the operating system and to my knowledge cannot be populated by a third party application. Shortcuts had existed since API level 1, and can be used by 3rd party apps as well. To add an

Setting working directory for a WiX shortcut

半腔热情 提交于 2019-12-06 04:36:33
I'm having trouble setting the working directory of a shortcut created as part of a WiX script. Here are the basics: <!-- create a start menu shortcut. --> <Directory Id="ProgramMenuFolder"> <Directory Id="ApplicationProgramsFolder" Name="My Name"> <Component Id="ApplicationShortcut" Guid="822A26AF-5231-4EDA-A18D-5DF15020BD94"> <Shortcut Id="ApplicationStartMenuShortcut" Name="My Name" Description="My Description" Target="[INSTALLLOCATION]My.exe" WorkingDirectory="INSTALLLOCATION" /> <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/> </Component> </Directory> </Directory> <!--

Add shortcut button to comment out code in Eclipse

霸气de小男生 提交于 2019-12-06 03:40:19
Just wondering if there is a way to add a button to the eclipse editor - like in Visual Studio - in the "Java view" to quickly comment or uncomment out selected blocks of code? ariel Using the keyboard shortcut isn't easier? Ctrl + / and Ctrl + \ 来源: https://stackoverflow.com/questions/5878434/add-shortcut-button-to-comment-out-code-in-eclipse

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

泪湿孤枕 提交于 2019-12-06 02:59:09
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. As far as I understand the installer magic, this is not possible. This has nothing to do with Wix but is a general MSI behaviour. Thus you would need to use un-advertised shortcuts

C++: How do I create a Shortcut in the Start Menu on Windows

会有一股神秘感。 提交于 2019-12-06 02:28:34
I would like to know how to obtain the path to the start menu folder on Windows and then create a shortcut to a path that might contain non-ASCII characters. Here is the solution. It uses Qt but it's also possible without. Then just use std::wstring instead of QString . For concatenating the paths and filenames you will then have to use string operations instead of using QDir . #include <shlobj.h> bool createStartMenuEntry(QString targetPath) { targetPath = QDir::toNativeSeparators(targetPath); WCHAR startMenuPath[MAX_PATH]; HRESULT result = SHGetFolderPathW(NULL, CSIDL_COMMON_PROGRAMS, NULL,

What is the shortcut to use Zen Coding for Notepad++?

混江龙づ霸主 提交于 2019-12-06 01:04:11
What is the shortcut key (Tab?) to activate Zen Coding within Notepad++ once Zen is installed? Could it be F1? Tab is not working. Nothing in Preferences under Editing. Go to settings > Shortcut Mapper > Plugin Commands tab. Look for "Expand Abbreviations" it has the shortcut "Alt-Ctrl-Enter" by default. Double-click that line (or hit Modify button) and deselect all checkboxes. Select "Tab" from the drop-down list of available key commands, and boom! Tab now Expands Abbreviations when it finds them, and otherwise functions as the normal Tab. Hope this helps! You have set a shortcut yourself.

Shortcut intent extras lost after restart?

[亡魂溺海] 提交于 2019-12-06 00:57:57
My application listens to the android.intent.action.CREATE_SHORTCUT broadcast, in my code I am creating a shortcut which includes a String extra like this: Intent shortcutIntent = new Intent(Intent.ACTION_VIEW); shortcutIntent.setClassName("com.some.name","com.some.name.Activity"); shortcutIntent.putExtra("stringid", "some string value"); ShortcutIconResource iconResource = Intent.ShortcutIconResource.fromContext(ShortcutActivity.this,iconIdentifier); Intent intent = new Intent(); intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); intent.putExtra(Intent.EXTRA_SHORTCUT_NAME,

Shortcut to open Android XML layout in Eclipse

时间秒杀一切 提交于 2019-12-06 00:09:50
For example, if I had something like setContentView(R.layout.activity_main); Would there be a shortcut to open activity_main.xml ? If not, is there a way to create one? Its there. Just hold Ctrl and move the cursor to the word activity_main which is the line setContentView(R.layout.activity_main); then, it will be give two option that one is for opening xml layout and another one is opening the declaration in R.java file. This is the shortcut to open the XML layout easily. Cheers! This is not exactly a shortcut, but you can highlight the activity_main part on that setContentView(R.layout

Creating a shortcut for a exe using a batch file

狂风中的少年 提交于 2019-12-06 00:03:53
I know a topic already exists like that but I do not want to use a VB script. I would hope you can create a shortcut using a command line in DOS. Please post some example that would be great. Thanks! AA Creating a shortcut in the .lnk format is basically impossible from a batch file without calling an external program of some kind. The file spec can be found here , and a quick glace will explain. Creating a .url format shortcut is quite easy as the format is a simple text file. The spec can be found here . This format has a few disadvantages , but may accomplish your goal. You can't create a