esullivan Posted November 5, 2015 Share Posted November 5, 2015 I have searched and found some examples to pin to Windows 7 taskbar, but I have not gotten them to work in 10. Anyone know how to pin to taskbar in 10? Link to comment Share on other sites More sharing options...
guinness Posted November 5, 2015 Share Posted November 5, 2015 (edited) They're just shortcuts AFAIK, so why not add as a shortcut to the relevant directory? Your searching skills should tell you which directory that is (as I have forgotten which one exactly). There is also a function in AutoIt that can grab the directory based on a GUID for that pinned directory. Again searching should bring it up too. Edited November 5, 2015 by guinness UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
esullivan Posted November 5, 2015 Author Share Posted November 5, 2015 Looks like they are stored here C:\Users\esullivan\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBarbut I can't just add a shortcut to that folder, I have been trying. Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted November 5, 2015 Share Posted November 5, 2015 Might need admin or even system level privileges.Look at the NTFS permissions for the folder and see if you have Write access. Link to comment Share on other sites More sharing options...
esullivan Posted November 5, 2015 Author Share Posted November 5, 2015 I can put a shortcut in the folder. It just doesn't appear in the taskbar Link to comment Share on other sites More sharing options...
guinness Posted November 5, 2015 Share Posted November 5, 2015 (edited) Refresh/Update Explorer? Edited November 5, 2015 by guinness UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
esullivan Posted November 5, 2015 Author Share Posted November 5, 2015 Sorry, yea tried that, even a full reboot. Link to comment Share on other sites More sharing options...
esullivan Posted November 9, 2015 Author Share Posted November 9, 2015 No other ideas to pin an app to the taskbar in 10? Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted November 9, 2015 Share Posted November 9, 2015 I researched it a bit more after your original post, I even tried it.There seems to be some cryptic registry changes and a few events that run in doing this. What I found out if that even the com method that used to work just fine does not work in windows 10. Like they have removed a programmatic way of doing it.A bit of info: https://connect.microsoft.com/PowerShell/feedback/details/1609288/pin-to-taskbar-no-longer-working-in-windows-10All the cryptic changes happen here:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\TaskbandIf you can make sense of the registry changes you can probably do it, but its not clean cut. Link to comment Share on other sites More sharing options...
Mugen Posted November 9, 2015 Share Posted November 9, 2015 Is there a difference than pinning on Windows 7? https://www.autoitscript.com/forum/topic/116641-how-can-i-create-any-shortcut-at-the-quicklaunch-for-windows-7/ Link to comment Share on other sites More sharing options...
esullivan Posted November 9, 2015 Author Share Posted November 9, 2015 Thanks Vicious. I saw that too, the one key that that changes and you can't understand. Was hoping someone found a way Yes Mugen, it's changed from Windows 7 Link to comment Share on other sites More sharing options...
Danyfirex Posted November 9, 2015 Share Posted November 9, 2015 (edited) I use this: $objShell = ObjCreate("Shell.Application") $objFSO = ObjCreate("Scripting.FileSystemObject") $strlPath = "C:\Users\User\Desktop\WampServer.lnk" $strFolder = $objFSO.GetParentFolderName($strlPath) $strFile = $objFSO.GetFileName($strlPath) $objFolder = $objShell.Namespace($strFolder) $objFolderItem = $objFolder.ParseName($strFile) $colVerbs = $objFolderItem.Verbs For $itemverb in $objFolderItem.verbs If StringReplace($itemverb.name, "&", "") = "Anclar a la barra de tareas" Then $itemverb.DoIt Next But is not dinamically. this one work for Spanish OS. Saludos Edited December 30, 2019 by Danyfirex Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted November 9, 2015 Share Posted November 9, 2015 I am just emulating what you did one step at a time in Powershell.When I get down to $objfolderitem if I list the verbs I get.OpenOpen file locationRun as administratorTroubleshoot compatabilityPin to StartRestore Previous VersionsCutCopyCreate ShortcutDeleteRenamePropertiesNo "Pin To Taskbar" and even if I invoke the verb "Pin to Start" I am not seeing any changes to the start or taskbar area. Link to comment Share on other sites More sharing options...
Danyfirex Posted November 9, 2015 Share Posted November 9, 2015 create a .lnk first then use the code with the .lnk Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
uamike Posted November 9, 2015 Share Posted November 9, 2015 Danyfirex your code will only work with no updates. Once you fully patch windows 10, it will not work any more. Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted November 9, 2015 Share Posted November 9, 2015 Yes I did create a .lnk firstcreate a .lnk first then use the code with the .lnk Saludos Link to comment Share on other sites More sharing options...
Danyfirex Posted November 9, 2015 Share Posted November 9, 2015 Does manual right click works? uamike I'm sure is that. I've never updated my windows... Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted November 9, 2015 Share Posted November 9, 2015 Yeah the manual method works, that is what is so crazy about it. I think its a "bug" that MS will patch out at some point. Link to comment Share on other sites More sharing options...
esullivan Posted November 9, 2015 Author Share Posted November 9, 2015 Stupid Microsoft and their dumb face. Link to comment Share on other sites More sharing options...
Danyfirex Posted November 9, 2015 Share Posted November 9, 2015 debug how explorer does it. (I would do it but I have not so much time.) Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut 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