Get help with using AutoHotkey and its commands and hotkeys
Posts: 40
Joined: 15 Aug 2018, 06:35


24 Nov 2018, 05:00


I am not a programmer. I look at a few code examples and honestly, I do not even understand where to begin to modify them.
I need to do a simple scrip that will change the current windows taskbar settings:
Lock the taskbar = On
Auto-hide the taskbar = Off
taskbar on screen = Bottom
Apply the current settings.

...Change the taskbar setups here

Is there anyone who knows how to do that in a very simple way?

Thank you
User avatar
Posts: 879
Joined: 12 May 2015, 02:10
GitHub: sl5net

Re: Taskbar

30 Nov 2018, 12:47

i dont know.

maybe such a window is not in taskbar :

Gui, ListBoxGui: -DPIScale -Caption +AlwaysOnTop +ToolWindow

probably becouse of
User avatar
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Taskbar

03 Dec 2018, 22:41

I have some code here re. lock and auto-hide. Cheers.
Get taskbar autohide state? Solved - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 81#p179081

For moving the taskbar perhaps MouseClickDrag.

When you change the taskbar position manually, this registry value is updated. However, I don't know if there's a way, after writing to the registry, to trigger Windows to update the taskbar position.

Code: Select all

q:: ;get taskbar position (hex data)
RegRead, vValue, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2, Settings
;RegWrite, REG_BINARY, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2, Settings, % vValue
Clipboard := vValue
MsgBox, % vValue
Here's a not-too-bad way to move the taskbar to an edge.

Code: Select all

q:: ;set taskbar position (tested on Windows 7)
vPos := "Bottom"
;vPos := "Left"
;vPos := "Right"
;vPos := "Top"
Run, % "rundll32 shell32.dll,Options_RunDLL 1" ;Taskbar and Start Menu Properties, Taskbar tab
WinWait, Taskbar and Start Menu Properties
hWnd := WinExist()
WinActivate, % "ahk_id " hWnd
Control, ChooseString, % vPos, ComboBox1, % "ahk_id " hWnd
ControlClick, Button9, % "ahk_id " hWnd ;OK
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask For Help”

Who is online

Users browsing this forum: JollyJoeHelpMePls, mikeyww, mrmech, sws224, tertius, XMCQCX and 62 guests