if i remember right i had trouble changing those options by registry and went back to the gui approach
Func _Taskbar($settings)
;-----------------------------------------------------------------------------
; AutoIt Version: 3.1.0
; Author:Andrew Calcutt Date:02/01/2006
; Script Function: Sets Taskbar Options
;-----------------------------------------------------------------------------
Run("RunDll32.exe shell32.dll,Options_RunDLL 1");open taskbar and start menu properties
WinWaitActive("Taskbar and Start Menu Properties")
While WinExists("Taskbar and Start Menu Properties")
If IniRead($settings, "Taskbar", "LockTaskbar", "0") = 1 Then
If ControlCommand("Taskbar and Start Menu Properties", "", "Button1", "IsChecked", "") = 0 Then ControlClick("Taskbar and Start Menu Properties", "", "Button1")
Else
If ControlCommand("Taskbar and Start Menu Properties", "", "Button1", "IsChecked", "") = 1 Then ControlClick("Taskbar and Start Menu Properties", "", "Button1")
EndIf
If IniRead($settings, "Taskbar", "AutoHideTaskbar", "0") = 1 Then
If ControlCommand("Taskbar and Start Menu Properties", "", "Button2", "IsChecked", "") = 0 Then ControlClick("Taskbar and Start Menu Properties", "", "Button2")
Else
If ControlCommand("Taskbar and Start Menu Properties", "", "Button2", "IsChecked", "") = 1 Then ControlClick("Taskbar and Start Menu Properties", "", "Button2")
EndIf
If IniRead($settings, "Taskbar", "KeepTaskbarOnTop", "0") = 1 Then
If ControlCommand("Taskbar and Start Menu Properties", "", "Button3", "IsChecked", "") = 0 Then ControlClick("Taskbar and Start Menu Properties", "", "Button3")
Else
If ControlCommand("Taskbar and Start Menu Properties", "", "Button3", "IsChecked", "") = 1 Then ControlClick("Taskbar and Start Menu Properties", "", "Button3")
EndIf
If IniRead($settings, "Taskbar", "Group", "0") = 1 Then
If ControlCommand("Taskbar and Start Menu Properties", "", "Button4", "IsChecked", "") = 0 Then ControlClick("Taskbar and Start Menu Properties", "", "Button4")
Else
If ControlCommand("Taskbar and Start Menu Properties", "", "Button4", "IsChecked", "") = 1 Then ControlClick("Taskbar and Start Menu Properties", "", "Button4")
EndIf
If IniRead($settings, "Taskbar", "ShowQuickLaunch", "0") = 1 Then
If ControlCommand("Taskbar and Start Menu Properties", "", "Button5", "IsChecked", "") = 0 Then ControlClick("Taskbar and Start Menu Properties", "", "Button5")
Else
If ControlCommand("Taskbar and Start Menu Properties", "", "Button5", "IsChecked", "") = 1 Then ControlClick("Taskbar and Start Menu Properties", "", "Button5")
EndIf
If IniRead($settings, "Taskbar", "ShowClock", "0") = 1 Then
If ControlCommand("Taskbar and Start Menu Properties", "", "Button6", "IsChecked", "") = 0 Then ControlClick("Taskbar and Start Menu Properties", "", "Button6")
Else
If ControlCommand("Taskbar and Start Menu Properties", "", "Button6", "IsChecked", "") = 1 Then ControlClick("Taskbar and Start Menu Properties", "", "Button6")
EndIf
If IniRead($settings, "Taskbar", "HideInactiveIcons", "0") = 1 Then
If ControlCommand("Taskbar and Start Menu Properties", "", "Button7", "IsChecked", "") = 0 Then ControlClick("Taskbar and Start Menu Properties", "", "Button7")
Else
If ControlCommand("Taskbar and Start Menu Properties", "", "Button7", "IsChecked", "") = 1 Then ControlClick("Taskbar and Start Menu Properties", "", "Button7")
EndIf
If ControlCommand("Taskbar and Start Menu Properties", "", "Button13", "IsEnabled", "") = 1 Then ControlClick("Taskbar and Start Menu Properties", "", "Button13")
WinClose("Taskbar and Start Menu Properties")
WEnd
EndFunc;==>_Taskbar
..
this is what i had origionally..
Func _Taskbar($settings, $HKUS1521)
; ----------------------------------------------------------------------------
;-----------------------------------------------------------------------------
; AutoIt Version: 3.1.0
; Author:Andrew Calcutt Date:08/09/2005
; Script Function: Sets Taskbar Options
;-----------------------------------------------------------------------------
;-----------------------------------------------------------------------------
_IniReadRegWrite($settings, "Taskbar", "LockTaskbar", $HKUS1521 & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarSizeMove", "REG_DWORD", "0x00000000", "0x00000001")
_IniReadRegWrite($settings, "Taskbar", "Group", $HKUS1521 & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarGlomming", "REG_DWORD", "0x00000001", "0x00000000")
_IniReadRegWrite($settings, "Taskbar", "HideInactiveIcons", $HKUS1521 & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "EnableAutoTray", "REG_DWORD", "0x00000001", "0x00000000")
EndFunc ;==>_Taskbar
i don't think i was able to get anything else to work by registry in the taskbar settings