Jump to content

Changing taskbar setting through autoit


Recommended Posts

  • Moderators

expertD,

Entering "+taskbar +auto +hide" into the forum"Search" facility (it is at the top-right of the page) found this within the first few suggestions. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • 2 weeks later...

expertD,

Entering "+taskbar +auto +hide" into the forum"Search" facility (it is at the top-right of the page) found this within the first few suggestions. ;)

M23

Thanks Melba23 for the link. But since I am a beginner for autoit. I can't understand some code (given below) in it. It will be great if you explain below code, or point me oward some tutorial where I can learn about it.

$hTaskBar = _WinAPI_FindWindow("Shell_TrayWnd", "")

_WinAPI_ShowWindow($hTaskBar, @SW_SHOW)
$ABM_GETSTATE = 0x00000004

DllCall('shell32.dll', 'uint', 'SHAppBarMessage', 'dword', $ABM_GETSTATE, 'ptr*', 0)

SetError(1, 0, 0)
Link to comment
Share on other sites

  • Moderators

expertD,

I can explain no better than the help file for the _WinAPI_FindWindow, _WinAPI_ShowWindow & SetError functions., while $ABM_GETSTATE is just a constant value used by the Shell32 DLL to designate one of its functions.

DllCall is one of the more complicated AutoIt functions, but it essentially asks a DLL to do something for you - as explained in the Help file the parameters tell Windows which DLL to use, how we want the return to be presented, what function the DLL should use, and the parameters to pass to the DLL. Unlike AutoIt, DLLS are very fussy about datatypes and so these parameters are very precisely formatted - which is why you have to define the type as well as the value (for example explaining that $ABM_GETSTATE should be passed as an unsigned 32 bit integer). :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...