:) Here's a script from AHK's help file:
; This example allows you to move the mouse around to see
; the title of the window currently under the cursor:
#Persistent
SetTimer, WatchCursor, 100
return
WatchCursor:
MouseGetPos, , , id, control
WinGetTitle, title, ahk_id %id%
WinGetClass, class, ahk_id %id%
ToolTip, ahk_id %id%`nahk_class %class%`n%title%`nControl: %control%
return
Skrommel
Ah, I see. Thanks! :Thmbsup:
Here's what I've got. It works as expected so far.
XButton2::
SetTimer, LookForInternetExplorer, 50
return
LookForInternetExplorer:
SetTimer, LookForInternetExplorer, Off
MouseGetPos,,, id, control
IfInString, control, Internet Explorer_Server
{
Send, {SHIFT down}{LButton}{SHIFT up}
return
}
else
{
Send, {XButton2}
return
}
return