toggle to switch taskbar location from bottom to right and back

Page 1 of 2 12 LastLast

  1. Posts : 416
    Win10 32bit v20H2
       #1

    toggle to switch taskbar location from bottom to right and back


    I know how to do it in several steps, but it would be ideal if it could be achieved by a hotkey or a batchfile. Do either exist ?
      My Computer


  2. Posts : 43,102
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    There are some levels of difficulty here. The taskbar could be hidden or locked, and that would need to be accommodated.

    I've only seen ways of moving it that require dragging it. Are you aware of any hotkeys that do that?

    You might be able to create a script in Autohotkey (free), but it could be hard to make that generally applicable to accommodate different circumstances, screen sizes and resolutions. It would have to be somewhat intelligent in detecting where the taskbar was, to then present a prompt offering choice of where you wished to place it.

    First reaction- not really worth the effort.
      My Computers


  3. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #3

    AutoIT script to toggle task Bar position


    Because you have done me the courtesy or replying, I will comment on your suggestions rather than simply
    burying myself in the AutoIt script literature.

    Although the Task Bar COULD be hidden or locked, I can confidently assert that in the circumstances of MY use, the task bar would be locked, but not hidden. Unlocking would be one of the steps (the first ?) in the 'batch file' clicking on which would achieve my aim.
    I guess if I confine myself to ONE switch that TOGGLES, another step would involve determining where the bar is 'right now'.

    Different screen sizes and resolutions would not be applicable to MY USE of the script.

    'not really worth the effort' I suspect there is wisdom in that, but the challenge attracts me.

    I have spent MUCH effort in automating the switch from which of two monitors is the Primary one, and ended up with an unreliable script - using Macro Express.
      My Computer


  4. Posts : 43,102
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    Hi, if you take a simple case of a particular monitor/screen and visible unlocked taskbar, then you could experiment with a simple Autohotkey script for a particular case- e.g. dragging from bottom to top.

    An example of a command you might use:
    toggle to switch taskbar location from bottom to right and back-snap-2019-03-07-11.06.38.png

    If you are dealing with fixed screen positions, rather than having to compute positions from screen dimensions, for example, this is clearly easier.

    That one command might be enough to drag and reposition the taskbar.

    It's easy to try- download and install Autohotkey, create e.g. one line in a text file, file type ahk, then double click it and it runs. If the syntax is wrong, you get a message related to the relevant line.

    If you wish, extend that to detecting where the taskbar currently is (how?) and then prompting to perform the appropriate command to drag it where you want it.

    As you can see, help is comprehensive and searchable, although sometimes obscure.
      My Computers


  5. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #5

    using Autohotkey


    'particular monitor/screen and visible unlocked taskbar' No, my taskbar is normally locked - I would need to include the unlocking step. I already use many Autohotkey applications - mostly for entering scraps of text.
    Forgive me for quoting the wrong program 'AutoIT' when you suggested AutoHotKey. MouseClickDrag looks daunting but 'feasible' - worth a try - but not tonight.
      My Computer


  6. Posts : 43,102
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #6

    Suggest you try simply dragging the taskbar with e.g. that command as a first step.

    Then (and I don't know quite how you'd make use of it):

    Unlocking taskbar: see Option 3 for useful info:
    Lock or Unlock Taskbar in Windows 10 | Tutorials
      My Computers


  7. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #7

    'that command as a first step' - Great idea. Hope to be able to report back about it soon.
      My Computer


  8. Posts : 43,102
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #8

    Idea: later, when starting the script, you may wish to determine where the taskbar is. If you were to check each possible position in turn, by checking if the mouse was over a 'window' with these characteristics:

    ClassNN MSTaskListWClass
    ahk_class Shell_TrayWnd
    ahk_exe explorer.exe

    you could find which corresponded to the taskbar.
      My Computers


  9. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #9

    Thank you. Sounds quite arcane, but when I get a chance to look into it - I hope it will turn out to be as simple as you imply.
      My Computer


  10. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #10

    I created an AHK file with the following code : "MouseClickDrag, L, 555, 666, 1250, 400". I put it on the desktop and unlocked the Task Bar. When I double-clicked the AHK, there was a reaction, but the Task Bar stayed where it was.
    The values of 555, 666 and 1250, 400 I obtained from the readings of 'Point Position' when the cursor was in the horizontal bar, and when it was in the vertical bar.
    We have the beginnings of something, but much more progress is needed.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:17.
Find Us




Windows 10 Forums