AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Flashing Effect Using SplashImage

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
DominicTFY



Joined: 05 Dec 2004
Posts: 10

PostPosted: Sun Dec 05, 2004 2:19 am    Post subject: Flashing Effect Using SplashImage Reply with quote

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?
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Dec 05, 2004 2:29 pm    Post subject: Re: Flashing Effect Using SplashImage Reply with quote

DominicTFY wrote:
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)
I can't think of a way to do that without using the Gui command. Gui is not much harder than SplashImage if all you want to do is display an image. For example: http://www.autohotkey.com/forum/viewtopic.php?t=1209

Quote:
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.
It might not be possible depending on how the game and/or video drivers work: Full-screen mode might not allow always-on-top windows to be visibible.

As an alternative, you could have a sound played (via SoundPlay) whenever the mute is enabled or disabled: play the sound right before mute is turned on and right after it is turned off (depending on its current state).
Back to top
View user's profile Send private message Send e-mail
DominicTFY



Joined: 05 Dec 2004
Posts: 10

PostPosted: Wed Dec 08, 2004 11:21 am    Post subject: Thx a million! Reply with quote

Thx, Chris! Sori for the late reply. Been trying doing other scripts recently. Haha~ Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group