Sign in to follow this  
Followers 0
Batch

Right clicking the taskbar

7 posts in this topic

Well here's what I got:

Opt( "WinTitleMatchMode", 4 )
ControlSend( "classname=Shell_TrayWnd", "", "ToolbarWindow322", "{APPSKEY}" )

And uh, it doesn't right click the taskbar. I want to automate the process of adding a toolbar like the quicklaunch bar, but I wasn't able to get beyond step 1. TIA you scripting gurus!

Share this post


Link to post
Share on other sites



So I guess it can't be done?

Share this post


Link to post
Share on other sites

get the screensize and depending on that have it right click a certain location like

If @DesktopHeight = 1024 Then
MouseClick ( "right", some x, some y )
Elseif @DesktopHeight = 800 Then
MouseClick ( "right", some x, some y )
And so on
Endif

but it wont work if they have the taskbar on the left, right, or top location...

i will try to figure it out using the code you already have though...

Share this post


Link to post
Share on other sites

CS, that worked, thanks! Why didn't my code work though? The specific control for the taskbar was "ToolbarWindow322"... Strange, but thank you again!

Share this post


Link to post
Share on other sites

CS, that worked, thanks!  Why didn't my code work though?

Probably the same reason that ControlSend fails (but Send works) for this:

$title = "Untitled - Notepad"
WinActivate($title)
ControlSend($title,"", "Edit1", "{APPSKEY}")
;;;;Send("{APPSKEY}")

The AppsKey might be one of the keys that does not work with ControlSend


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

That's good to know, thanks a lot!

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  
Followers 0