51
F11::
; AvaFind small thumb preview in X2 scrap pane
IfWinActive ,ahk_class AUI40WndClass
{ WinActivate ,ahk_class AUI40WndClass
WinMove 0,0
; preview pane running
IfWinExist, scrap² - Avafind Preview.cida
{ WinActivate, scrap² - Avafind Preview.cida
WinMove, 1281,0
WinMaximize
Sleep, 300
Send {Alt}vpt
Sleep, 300
Send {Alt}vau
WinActivate ,ahk_class AUI40WndClass
Sleep, 300
Send ^a
MouseClickDrag, L, 600, 130, 2470, 900
WinActivate, scrap² - Avafind Preview.cida
Sleep, 1000
Send ^r
return
}
; preview pane not started yet
else
{
Run D:\Xplorer2\Avafind Preview.cida, , Max
WinWait, scrap² - Avafind Preview.cida
WinActivate, scrap² - Avafind Preview.cida
WinMove, 1281,0
Sleep, 300
Send ^o
Sleep, 300
Send {Alt}vpt
Sleep, 300
Send {Alt}vad
Sleep, 300
Send {Alt}vvr{{}pictures{}}{Enter}
WinActivate ,ahk_class AUI40WndClass
Sleep, 300
Send ^a
MouseClickDrag, L, 600, 130, 2470, 900
WinActivate, scrap² - Avafind Preview.cida
Send ^r
return
}
}
; not Avafind - normal behavior
else
{ Send {F11}
return
}