So i have this to toggle autohide of taskbar that i found long ago on ahk forums but i actually need a way to get the state of it rather than to set it.
This is the code that toggles it:
VarSetCapacity(APPBARDATA, A_PtrSize=4 ? 36:48)
NumPut(DllCall("Shell32\SHAppBarMessage", "UInt", 4 ; ABM_GETSTATE
, "Ptr", &APPBARDATA
? 2:1, APPBARDATA, A_PtrSize=4 ? 32:40) ; 2 - ABS_ALWAYSONTOP, 1 - ABS_AUTOHIDE
, DllCall("Shell32\SHAppBarMessage", "UInt", 10 ; ABM_SETSTATE
, "Ptr", &APPBARDATA)
How does one make this actually return a value of 1 for autohide enabled and 0 for auto hide disabled?
And in case i or anyone else could ever need that, can we also get the taskbar locked state and always on top as well?
I want to show a custom clock on my screen when taskbar is hidden and for that i need to know when its hidden or not.
Ill experiment still and post any new findings.