Hi,
How i can get the position of the taskbar icons in windows 11 ?
i mean if is left or centered. i hope you can help me. thank you very much.
Ciao
AL90
How getting Position of the TaskBar Icons in Windows 11 ?
Re: How getting Position of the TaskBar Icons in Windows 11 ?
Such information is usually stored in the registry. Therefore, it is easy to know by googling.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
"TaskbarAl" DWORD value
0 = left alignment
1 = center alignment
Code: Select all
;Return value: -1 (error), 0 (left), 1 (center)
Procedure IsTaskBarIconsCenterAligned()
Protected Value, Result = -1
Protected Type = #REG_DWORD, Size = 4
If OSVersion() >= #PB_OS_Windows_11
If SHRegGetUSValue_("Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "TaskbarAl", @Type, @Value, @Size, 0, 0, 0) = #ERROR_SUCCESS
Result = Value
EndIf
EndIf
ProcedureReturn Result
EndProcedure
Debug IsTaskBarIconsCenterAligned()
Re: How getting Position of the TaskBar Icons in Windows 11 ?
Code: Select all
SHRegGetUSValue_()
Re: How getting Position of the TaskBar Icons in Windows 11 ?
Wow that works fine. Many thanky to you!