Greetings,
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.
!z::
...Change the taskbar setups here
Return
Is there anyone who knows how to do that in a very simple way?
Thank you
Taskbar
Re: Taskbar
i dont know.
maybe such a window is not in taskbar :
Gui, ListBoxGui: -DPIScale -Caption +AlwaysOnTop +ToolWindow
probably becouse of
-Caption
maybe such a window is not in taskbar :
Gui, ListBoxGui: -DPIScale -Caption +AlwaysOnTop +ToolWindow
probably becouse of
-Caption
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Taskbar
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.
Here's a not-too-bad way to move the taskbar to an edge.
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
return
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
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Who is online
Users browsing this forum: AdsBot [Google], Bing [Bot], Google [Bot] and 94 guests