AutoHotkey Community

It is currently May 27th, 2012, 3:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: July 11th, 2010, 1:14 am 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
hi guys --
Trying to find the ahk_class and/or control for the IEXPLORE icon on the windows 7 "quick launch" toolbar.

Its the big blue "e" icon shown here:
Image

I'd like to recognize a 'double click' when hovering over it.

To do that I believe I need the ahk_class and control ids.

When I use windows spy utility, I simply get "ahk_class TaskListThumbnailWnd" under the "windows title and class" section. No title is given, just the ahk_class. I tried putting that in but no luck.

When I hover over the big blue "e" icon, window spy utility tells me that "now under mouse cursor" is: absolutely nothing.

so for instance, the code snippet below (stolen from elsewhere on these forums) successfully accomplished catching the double-click in winxp when double clicking on the start button. I'm trying to do something similar, except that i'd like to double click the big blue "e" icon in win7 quick launch bar:
Code:
~lbutton::
mousegetpos,,, wid, control
wingetclass, wclass, ahk_id %wid%
if (A_PriorHotkey = "~LButton" && A_TimeSincePriorHotkey < 400) ; double click
{
   if (wclass = "Shell_TrayWnd" && control = "Button1") ; start         
...


Last edited by jak on July 11th, 2010, 4:29 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
PostPosted: July 11th, 2010, 3:33 am 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
jak wrote:
Its the big blue "e" icon shown here:

:?:

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
PostPosted: July 11th, 2010, 4:29 am 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
TLM wrote:
jak wrote:
Its the big blue "e" icon shown here:

:?:


sorry, updated


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 11th, 2010, 11:42 pm 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
anyone? I cant be the first to want to double click those icons in the quirky win7 qucklaunch bar.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 12th, 2010, 5:49 am 
Offline

Joined: November 29th, 2009, 7:53 am
Posts: 46
Location: Queensland
you may be able to use a selected pixels area to confirm you ar e on the button


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 12th, 2010, 4:34 pm 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
On win7x64 theres no way to detect the button in a conventional manner..
Image

Do you need this to work on multiple systems or just the current one.
If so, you could plot the coordinates of the mouse.

There maybe an API function for this, looking into it..

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 12th, 2010, 5:07 pm 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
hi tlm -- i guess plotting the coordinates is the fallback option, if we dont have a more elegant solution...


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: bobbysoon, Google Feedfetcher, Wicked, Yahoo [Bot] and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group