Wanderer82 Posted June 29, 2023 Share Posted June 29, 2023 (edited) Hi I have written an auto it macro which does the following: Open the start menu, then type "app:ex" so that the Explorer App is visible and then right mouse click (Left Shift Down + F10) and then the down arrows to get to "Pin to taskbar". The problem is that depending on the configuration or Windows version the "Pin to taskbar" is in a different position. So sometimes I need two arrows down, sometimes three. Is there a way to check whether I'm on the right spot (context menu item)? Thanks, Thomas Edited June 29, 2023 by Wanderer82 Link to comment Share on other sites More sharing options...
rsn Posted June 29, 2023 Share Posted June 29, 2023 This may not be quite the answer you're looking for but I found scripting out pttb.exe (Pin To Task Bar) via CMD/Powershell was easier than any other method of pinning an app. argumentum 1 Link to comment Share on other sites More sharing options...
Wanderer82 Posted June 29, 2023 Author Share Posted June 29, 2023 Yes, I use this app to pin everything but Windows Explorer (File Explorer). It just doesn't work with all these Pin To Taskbar tools unfortunately. It seems to work but everytime I try to open File Explorer with the created taskbar item (created by Pin To Taskbar) another of the same icon appears on the taskbar with the File Explorer. Somehow it's not the correct file I try to pin to the taskbar. But I've tried back and forth, it won't work without an Auto IT macro. If you have a better and working solution, I'd be very happy 🙂 Link to comment Share on other sites More sharing options...
rsn Posted June 29, 2023 Share Posted June 29, 2023 I swear Explorer worked but I'm seeing now that it doesn't. The other method I used was a registry export of a preconfigured PC (we did Outlook, a browser and a custom app). HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband and maybe this one but it might only be outlook. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband\AuxilliaryPins Copy the shortcuts to be pinned to the user's "%AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\" then import the reg file you made and finally kill explorer. Link to comment Share on other sites More sharing options...
Wanderer82 Posted June 30, 2023 Author Share Posted June 30, 2023 Well, yes, I could do it that way and I even delete the reg key and the shortcut files already. But copying an already exisiting taskband key gave me some problems, as I can remember. It's been quite a while since I tested everything. It just seemed a bit safer to do it with the extra app. But actualyl my question is also general. I'd like to know if it's possible so check if the right "object" or text field is selected before continuing. Link to comment Share on other sites More sharing options...
rsn Posted June 30, 2023 Share Posted June 30, 2023 Fair point and apologies for taking the thread off point. Link to comment Share on other sites More sharing options...
Wanderer82 Posted June 30, 2023 Author Share Posted June 30, 2023 No problem, any help is appreciated :-) 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