I would like to write a program that Pins an APPLICATION like Microsoft WORD, EXCEL, and POWERPOINT to the taskbar on windows 7 or 8. I found the directory that hosts the shortcuts (%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar); however, when I create a shortcut and move it to that folder, the icon does not appear in the taskbar. Also, removing a file from that folder does not remove the icon from the taskbar, it just disassociates the icon from any shortcut. The next time you click on the icon it will display a message asking if you want to remove the pinned item. I would like to automate these processes as I use them a lot on multiple computers per day.
Found my answer elsewhere. VBScript is the way to go!
http://www.codeproject.com/Articles/185512/Programmatically-PIN-shortcut-onto-Taskbar-on-Win7
Old question but I was looking for a way to do this too, this way seem much simpler than using VB.
Create a new shortcut and set the target to: cmd.exe /c "path\to\script.bat". Then you can just right-click and pin it like other shortcuts.
Got the solution from here:
http://www.mysysadmintips.com/windows/clients/343-pin-bat-files-to-windows-8-start-screen
Related
I'm making a non-elevated software installer for Windows 10. The installer saves the application into C:\Users\USER_NAME\AppData\Local\MY_APP_NAME folder. It also creates a shortcut in C:\Users\USER_NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\ folder. The shortcut correctly appears in Start Menu, but it never appears in search results.
I tried rebuilding the search index and ran Start Menu troubleshooter with no luck. I'm from Poland and thus Cortana is disabled on my machine.
I investigated other shortcuts in that folder and found that some applications appear in search results while others do not. For example, a link to SourceTree appears in search results while a shortcut to R-Link 2 Toolbox do not appear there. Both SourceTree and R-Link 2 Toolbox are installed into AppData\Local folder and both shortcuts are saved to AppData\Roaming\Microsoft\Windows\Start Menu\Programs\. I don't see any difference between their shortcut files. Yet I can find SourceTree in search results while R-Link isn't there. This behavior isn't related to spaces in the app name. I tried renaming my app not to have a space in its name and this changes nothing.
Is there something I should do to register my shortcut for indexing?
It seems the problem was related to indexing issues of the Windows OS. It seems sfc /scannow command solved the problem and now indexing works correctly for all menu folders and apps.
Certain programs for Windows have specific keyboard shortcuts that execute specific functions. I was wondering if there is a way to create a small file that can activate any shortcut by clicking on it?
Example: Win+C opens up the charms bar in Windows 8. Can I create a file to click on that opens this function for me?
(I want this file to activate a different keyboard shortcut, not the one mentioned above in my example.)
It looks like you are trying to create a desktop shortcut.
To do so:
Use My Computer or Windows Explorer to locate the object to which
you want to create a shortcut.
Right-click the object, and then
click Create shortcut.
Drag the new shortcut to an open area on the
desktop.
You can also create a keyboard shortcut that will open or do whatever that shortcut would do if you opened it. See properties.
Reference: https://support.microsoft.com/en-us/kb/140443 (page no longer available since Windows 10)
aka: How can I find a tab in another window in Sublime?
In Sublime, the feature called Goto Anything (⌘+P, ⌘+T, Win: ⌃+P, etc.) searches through a list of open files/tabs, or any files (and more) but only in your current project/focused window :( I understand why it works that way but it's not super useful for having a bunch of random files open.
I'm currently using Sublime on my home computer (Mac) where I have 3 or 4 windows open (not technically projects, but Sublime seems to associate the two conceptually) each with 1-5 tabs. It's often difficult to find a tab I was using for a quick note (eg. groceries) because right-clicking the app icon in the dock only shows the active tab per window. If "groceries" was in a window and wasn't the last viewed tab when I went to another Sublime window, it's effectively lost, and I've got to start going through each one of my Sublime windows to find it.
I've also tried the Find in Files... feature (⇧+⌘+F) with <open files> in the Where field thinking I'd just search for something in the file (eg. eggs) but "open files" really means "open files in this project/window"...same scope limitation.
I've even looked for a plugins that might help but "Goto absolutely everything" is a concept that's hard to search for. I've been wanting to try writing my own so I'd be grateful for a Python solution as well!
I realize this is a somewhat old thread, and you may have already come up with a solution. While there is no way that I know of to do a search or goto anything across all windows, I developed a Sublime Text plugin that allows you to jump between windows using command+shift+o on Mac OS X.
You can install it from package control:https://packagecontrol.io/packages/GotoWindow
I'm looking to customize my putty sessions so I can change the icon depending on a "group" that the putty session is in. I essentially want my taskbar (windows 7) to have an icon for each group I define, but each of those icons to be different. Is there a good tool or way to do this? Thank you very much for any replies!
I did it manually.
Create a shortcut of putty on the desktop
Edit the "Target:" line in right-click properties (add -load <session name>)
press change Icon and choose your icon -
I use PuTTYTray: https://puttytray.goeswhere.com/
It allows you to choose the icon in the configuration:
Window - Behaviour - Adjust the icon.
Then just save the session.
As a small annoyance, you don't have many options for icons, since it uses the .ico format. Therefore, I keep a copy of the original program PUTTY.EXE, if only to capture the original icon from there.
I made a patch to PuTTy which allows you to specify a custom taskbar icon for a window/session (as opposed to an taskbar icon which is a shortcut to a session). i.e. If you have several active sessions, each one can be identified in the taskbar by it's own icon. The link below has the patch (which is pretty small) and a pre-build executable with the patch (which is against a pretty old version of PuTTy).
http://www.bradgoodman.com/puttypatch.html
I often work with multiple checkouts of the same solution, but as they all have the same name, all the taskbar buttons appear the same. I would like to rename the taskbar buttons so I can identify solutions more easily.
I have written an autohotkey script, which almost works, or if anyone can suggest something better, I'd like to hear it.
This works on an explorer window, but fails on almost everything else.
#f2::
InputBox NewName, Rename Window, Enter a new name for this window:
WinGet CurrentWindow, ID, A
WinSetTitle, ahk_id %CurrentWindow%, , %NewName%
return
One possibility is that other windows rename themselves every frame. Putting the code in an infinite loop means that I can now rename Notepad2 windows (but not visual studio windows), but I can only run the script once!
Rename the solution in solution explorer. Don't commit into source control!