Jump to content

Question about "Taskbar and Start Menu"


 Share

Recommended Posts

This code may show you how...

_TaskBarProperties()

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
        $oShellApp.TrayProperties
        If WinWait($title_taskbar, '', 5) Then
            WinSetState($title_taskbar, '', @SW_HIDE); Hide the window
            Sleep(250)
            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
        EndIf
    EndIf
    Opt('WinWaitDelay', $opt_WinWaitDelay)
EndFunc

:)

Link to comment
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:""")
WinWait("(C:)")
$handle = WinGetHandle("(C:)")
ControlSetText($handle, "", "Edit1", $controlpanel)
ControlSend($handle, "", "Edit1", "{ENTER}")
WinWait($controlpanel)
WinActivate("Kontrolpanel")
ControlFocus($handle, "", "SysListView321")
Send($procesline & "{ENTER}")
WinClose("Kontrolpanel")

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

Link to comment
Share on other sites

This code may show you how...

_TaskBarProperties() 

;...

:D

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]
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...