ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: WinCovers

<< < (7/9) > >>

Uncle John:
Hi doublebogey,

Thanks for educating me about Splashimage etc. It's a much easier way of doing things.

Had a good laugh about the message to the Principal etc. ;D

Uncle John:
Hi Db,

Making the following change switches off SplashImages when no Windows are active:


--- ---If Title=                                               ;If title is blank,. then
    {
      Return                                            ;return, do nothing
    }
changed to


--- ---If Title=                                                ;If title is blank,. then
    {
      SplashImage 1:Off                                  ;Turn off Wincover 1   
      SplashImage 2:off
      SplashImage 3:off
      Return                                             ;return
    }
However restoring another minimized window terminates the script leaving the Calculator running without covering SplashImages when the Calculator is again restored.

This problem still needs to be solved.

Cheers.

brett:
on the road for a couple for days, be back soon

dB

Uncle John:
Another approach...
From what I've been told the code can be simplified by making each SplashImage the child of the Calculator Window through the use of the  "ControlGet Hwnd" command and the DllCall("SetParent"...) function call.

Not sure how to go about this. Any volunteers?

Uncle John:
Cover.bmp is a grey rectangle W230 H170:


--- ---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
I'm try to get the SplashImage to move with Calculator when I drag Calculator.

What did I do wrong?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version