Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Creating toolbar on windows taskbar


  • Please log in to reply
16 replies to this topic
AutoIT Answer
  • Guests
  • Last active:
  • Joined: --
Although the last post was nearly 2 years ago, I found the nearly foolproof solution for using AutoIT to do this and thought others might find it useful:

#NoTrayIcon
#include <Array.au3>

Dim $ctrlsize

$ctrlsize=ControlGetPos("[CLASS]","","ReBarWindow321")

ControlClick("[CLASS]","","ReBarWindow321","secondary",1,$ctrlsize[2],$ctrlsize[3]*0.5)
MouseClick("primary",$ctrlsize[0]+$ctrlsize[2]+50,@DesktopHeight-215,1,1)

Sleep(150)
Send("d")

This is specific to check (or un-check) the 'Desktop' toolbar. To check/un-check other toolbars, you'll need to find out the underlined keyboard letter for that option. To add a toolbar, the letter is 'n' (instead of the 'd' in the code I posted).

nazikus
  • Members
  • 15 posts
  • Last active: Jun 25 2015 12:11 PM
  • Joined: 23 Feb 2013

and 2 years after again happy.png

After a small fix, your code wordked for me on Win7.

 

 

#NoTrayIcon
#include <Array.au3>

Dim $ctrlsize
$ctrlsize=ControlGetPos("[CLASS:Shell_TrayWnd]", "", "[CLASSNN:ReBarWindow321]")
ControlFocus("[CLASS:Shell_TrayWnd]","","[CLASSNN:ReBarWindow321]");
ControlClick("CLASS:Shell_TrayWnd]","","CLASSNN:ReBarWindow321]","secondary",1,$ctrlsize[2],$ctrlsize[3])

;Sleep(50)
Send("t{ENTER}")
;Sleep(50)
send("a")