DominicTFY
Joined: 05 Dec 2004 Posts: 10
|
Posted: Sun Dec 05, 2004 2:19 am Post subject: Flashing Effect Using SplashImage |
|
|
Hey guys, I'm new here and I have 2 questions.
1) How do i remove the flashing effect caused by using SplashImage?(the 'transparent' background appears for 1 split second and then becomes transparent again)
In addition,
2)how do i make it "Always-On-Top"? I tried playing Counter-Strike and pressed the hotkey but i can't c it on the screen.
Here's my Code
| Code: |
;By Dominic Tay
;Master Mute
^#m::
SoundSet, +1,, mute
SoundGet, Master_mute,, mute
if Master_mute = On
{
SplashImage,, b X-65 Y690 FM30 WM1000 CW000000 CT000080,,Mute On, MuteDisplay
WinSet, TransColor, 000000 170, MuteDisplay
setenv, presstime, %A_MDay%%A_hour%%A_Min%%A_Sec%
envadd, presstime, 2
SetTimer, RemoveSplashImage1, On
return
RemoveSplashImage1:
setenv, presstime2, %A_MDay%%A_hour%%A_Min%%A_Sec%
ifgreaterorequal, presstime2, %presstime%
{
SplashImage, Off
WinSet, TransColor, Off, MuteDisplay
return
}
return
}
else
{
SplashImage,, b X-65 Y690 FM30 WM1000 CW000000 CT000080,,Mute Off, MuteDisplay
WinSet, TransColor, 000000 170, MuteDisplay
setenv, presstime, %A_MDay%%A_hour%%A_Min%%A_Sec%
envadd, presstime, 2
SetTimer, RemoveSplashImage1, On
return
}
return
|
The Hotkey is Ctrl+Win+M
(Look at the bottom left screen)
Thought of using IfWinExist to solve the prob..But i dunno how to go about doing that...Can anybody help me?
Or is there a way to create Text with transparent background like mine, but in a different way? |
|