Jump to content
Sign in to follow this  

Question about "Taskbar and Start Menu"

Recommended Posts


This code may show you how...


Func _TaskBarProperties()
    Local $opt_WinWaitDelay, $oShellApp, $title_taskbar
    $opt_WinWaitDelay = Opt('WinWaitDelay', 1)
    $title_taskbar = 'Taskbar and Start Menu Properties'
    $oShellApp = ObjCreate('Shell.Application')
    If Not @error Then
        If WinWait($title_taskbar, '', 5) Then
            WinSetState($title_taskbar, '', @SW_HIDE); Hide the window
            ControlCommand($title_taskbar, '', 'Button1', 'UnCheck'); UnLock the Taskbar
            ControlCommand($title_taskbar, '', 'Button2', 'Check'); Auto-hide the Taskbar
            ControlCommand($title_taskbar, '', 'Button5', 'Check'); Show Quick Launch
            ControlCommand($title_taskbar, '', 'Button1', 'Check'); Lock the Taskbar
            ControlClick($title_taskbar, '', 'Button13'); Apply the settings
            ControlClick($title_taskbar, '', 'Button11'); OK to finish
    Opt('WinWaitDelay', $opt_WinWaitDelay)


Share this post

Link to post
Share on other sites

This is not pretty but it works :) You will have to change the two variables i set...

AutoItSetOption("WinTitleMatchMode", 2)

;Change those two
$controlpanel = "Kontrolpanel"
$procesline = "Proceslinje"

Run("explorer.exe ""C:""")
$handle = WinGetHandle("(C:)")
ControlSetText($handle, "", "Edit1", $controlpanel)
ControlSend($handle, "", "Edit1", "{ENTER}")
ControlFocus($handle, "", "SysListView321")
Send($procesline & "{ENTER}")

Edit: MHz's example is way better :D

Edited by Shevilie

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post

Link to post
Share on other sites

This code may show you how...




Sweet, thanks again... I thought I would have to use some object thing but I haven't used those very much... But now that I think about it there isn't much point in me bringing up the options for the Windows Start menu when I'm making my own... :) Still, thanks, I need that for another program.

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.