#Persistent Version=dB Wincover v0091 Run, %SystemRoot%\System32\calc.exe ;run Calculator WinWaitActive, Calculator ;wait for Calculator to be active SetTimer, timingloop ,100, ;run timingloop every 100ms Return TimingLoop: WinGetActiveTitle, Title ;get the title of the current active window If Title= ;If title is blank,. then { Return ;return, do nothing } IfNotEqual, Title, Calculator ;If title is NOT Calculator, { WinMinimize, Calculator ;minimize Calculator SplashImage 1:Off ;Turn off Wincover 1 SplashImage 2:off SplashImage 3:off oldx:= ;Reset x to 0 for when Calculator is restored IfEqual, Title, Windows Task Manager { msgbox, You tried to activate the Windows Task Manager`,`n A email with all your details have been sent to the Principal, `nreally loud sirens are about to sound in 5 seconds, block your ears ;insert a wincover for Windows Task Manager here } WinGetTitle, CalcCheck, Calculator ;Get Calculators title IfNotEqual, CalcCheck,Calculator ;If Calculator is not running will return a Blank { ExitApp ;If blank, exit application } } IfEqual, Title, Calculator ;If Current window is Calculator, then { WinGetPos, X, Y, Width, Height, Calculator ;get postion of calculator If (OldX = X and OldY = Y and Oldtitle=title) Return ;if calculator has not moved, Return oldx:=x ;remember values for next Check oldy:=y Oldtitle:=title SplashImage 1:, % "B W200 H20 Y"y+72 "X"x+14 "cw00FF00" ; green SplashImage 2:, % "B W230 H170 Y"y+135 "X"x+4 "cwC0C0C0" ; grey SplashImage 3:, % "B FS8 W470 H19 Y"y+22 "X"x+4 "cwFFFFFF", A Wincover is blocking the menu bar ; white ; Return } return guiescape: guiclose: exit: ExitApp