Jump to content



Photo

Right clicking the taskbar


  • Please log in to reply
6 replies to this topic

#1 Batch

Batch

    Wayfarer

  • Active Members
  • Pip
  • 76 posts

Posted 04 June 2004 - 03:06 PM

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!







#2 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 06 June 2004 - 08:15 PM

So I guess it can't be done?

#3 Guest_>Stupid<_*

Guest_>Stupid<_*
  • Guests

Posted 06 June 2004 - 08:25 PM

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

#4 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 06 June 2004 - 10:14 PM

This might work:
Opt( "WinTitleMatchMode", 4 ) WinActivate("classname=Shell_TrayWnd") Send("{APPSKEY}t")

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

#5 Batch

Batch

    Wayfarer

  • Active Members
  • Pip
  • 76 posts

Posted 07 June 2004 - 12:51 PM

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

#6 CyberSlug

CyberSlug

    Overwhelmed with work....

  • MVPs
  • 3,587 posts

Posted 07 June 2004 - 02:04 PM

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!

#7 Batch

Batch

    Wayfarer

  • Active Members
  • Pip
  • 76 posts

Posted 07 June 2004 - 02:05 PM

That's good to know, thanks a lot!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users