Jump to content
Sign in to follow this  
Guest neLO

Taskbar Properties

Recommended Posts

Guest neLO

Hello,

Can anybody help me on how to access the Taskbar properties.

I know that it's normally done by right clicking on the task bar. But How can i do it from within an AutoIt script?

Thxs for help

neLO

Share this post


Link to post
Share on other sites
CyberSlug

According to this site you can use a vbs file....

So here's a coded workaround in AutoIt..... There should be simpler rundll shell32.dll solution, but I couldn't find it.... Watch out for word wrap in the following:

$filename = "foo.vbs" ;create a temporary vbs file
If FileExists($filename) Then FileDelete($filename)
FileWriteLine($filename, 'Dim objShell : Set objShell = CreateObject("Shell.Application") : objShell.TrayProperties')
RunWait('WScript.exe "' & $filename & '"')
FileDelete($filename)

; Optionally bring window to foreground
WinWait("Taskbar and Start Menu Properties")
WinActivate("Taskbar and Start Menu Properties")
Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites
Guest neLO

thxs so far ... I'll give it a try. As I don't know any vbs-stuff I'd still prefer a genuine AutoIt solution ....So any other ideas are appreciated.

neLO

Share this post


Link to post
Share on other sites
this-is-me

WinActivate("classname=Shell_TrayWnd")

Send("{APPSKEY}r")


Who else would I be?

Share this post


Link to post
Share on other sites
Jos

What about ?

AutoItSetOption("WinTitleMatchMode", 4)
ControlSend("classname=Shell_TrayWnd","","ToolbarWindow323","+{F10}")

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
this-is-me

You forgot the "r" for properties


Who else would I be?

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.