Yikes. It just occurred to me that I might be infringing copyright by implementing this WinCovers idea.
Anyone thought about this issue b4?
Anyone thought about this issue b4?
FYI. I've talked about this idea with a lot of programmers in the past and they all say it can't be done.Luckily I have never spoke to a programmer, so this does not apply to me.


If Title= ;If title is blank,. then
{
Return ;return, do nothing
}If Title= ;If title is blank,. then
{
SplashImage 1:Off ;Turn off Wincover 1
SplashImage 2:off
SplashImage 3:off
Return ;return
}Run, %SystemRoot%\System32\calc.exe
WinWaitActive, Calculator
ControlGet, hWndNewParent, Hwnd,,, Calculator
WinGetPos, X, Y,,, Calculator
x:=X+55
y:=Y+140
SplashImage, cover.bmp, B X%x% Y%y%
ControlGet, hWndChild, Hwnd,,, SplashImage
DllCall("SetParent", hWndChild, hWndNewParent)
Sleep, 10000
SplashImage, Off#SingleInstance Force
#NoEnv
SetBatchLines -1
#Persistent
/*WinGet, id, list, , , Program Manager ; Close all windows
Loop, %id%
{
StringTrimRight, this_id, id%a_index%, 0
WinGetTitle, this_title, ahk_id %this_id%
winclose,%this_title%
}
*/
WinHide ahk_class Shell_TrayWnd
Run calc.exe, , , PID
WinWait ahk_pid %PID%
DllCall("SetMenu", uint, WinExist(), uint, 0) ; Remove menu bar of "last found window".
WinMove, ahk_pid %PID%,,0, 0 ; Move the Calculator window to the top left corner.
SplashImage, , B w455 h30 x0 y0 CWBlue, , , SICalcCover
;WinSet....
;SplashImage, , B w175 h165 x55 y125 CWSilver, , , SICalcCover
SetTimer Follow, 100
Follow:
IfWinNotExist ahk_pid %PID%
{
Winshow ahk_class Shell_TrayWnd
ExitApp ; Calc has been closed
}
Return
I don't know if you still need this one...

Original address: https://www.donationcoder.com/forum/index.php?topic=3868.0