Wasting my time… Writing on a blog.

My page of ramblings

Aero Peek Click through script March 2, 2011

Filed under: Uncategorized — jordoex @ 2:15 am

Microsoft sucks.  So I made this. Enjoy. Requires Autohotkey.

; Aero Peek Clickthrough
;
; Author:         Jordan Klassen
;
; Script Function:
;	Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
SetControlDelay -1

tout:= False

#IfWinExist ahk_class LivePreview
#LButton::
{
    MouseGetPos , PosX, PosY,
    ControlFocus , SysListView321, Program Manger
    if tout {
        tout:= False
        ControlSend , SysListView321, {Enter}, Program Manager,,,
        ; PostMessage , 0x203, 0, PosX&0xFFFF | PoxY<<16, SysListView321 ; WM_LBUTTONDBLCLCK
    }
    else {
    tout:= True
    SetTimer , resetTimeout, -300
        ControlClick , SysListView321, Program Manager,,,,x %PosX% y %PosY% D
    }

    return
}
#LButton Up::
{
    MouseGetPos , PosX, PosY,
    ControlClick , SysListView321, Program Manager,,,,x %PosX% y %PosY% U
    return
}
#RButton::
{
    MouseGetPos , PosX, PosY,
    ControlClick , SysListView321, Program Manager,,,2 ,x %PosX% y %PosY% NA
    ; ControlClick2 ( PosX, PosY, Program Manager,,,)
    return
}

resetTimeout:
tout := False
return
Advertisement
 

One Response to “Aero Peek Click through script”

  1. P Troy Says:

    Thank you so much for this! It was really annoying that you couldn’t click on the desktop icons when using Aero Peek.

    It even works with right clicks since I changed this line:

    ControlClick , SysListView321, Program Manager,,,2 ,x %PosX% y %PosY% NA

    in the section RButton:: to:

    ControlClick , SysListView321, Program Manager,,R, ,x %PosX% y %PosY% NA

    (Unfortunately, after a right click the context menu doesn’t show up until you release the keys Windows+Space, but that’s not a big problem)

    Best Regards
    P Troy


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.