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