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 

Screen title+subtitle splashtext

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



Joined: 01 Nov 2005
Posts: 135

PostPosted: Fri Mar 16, 2007 6:09 am    Post subject: Screen title+subtitle splashtext Reply with quote

Playful and hopefully useful.

Code:

#NoTrayIcon

; texts to be shown
Title = Your title here.
SubTitle = Your subtitle here.

gui, +alwaysontop +toolwindow
gui, color, 6D0043
gui,margin,80,50
Gui, -Caption
gui,font,s30,Georgia
Gui, Add, Text, cFFDD00 center vt1pos, %Title%
gui,font,s15
Gui, Add, Text, cwhite center vt2pos, %SubTitle%
Gui, Show, , splash

; center all
WinGetPos, , , ww, , splash
GuiControlGet, t1pos, Pos
GuiControl, Move, t1pos, % "x" ((ww-t1posW)/2)
GuiControlGet, t2pos, Pos
GuiControl, Move, t2pos, % "x" ((ww-t2posW)/2)

; show for 2secs
sleep 1800
; and fade out
trans = 255
loop, 100
{
; play with numbers to adjust fade speed
sleep 5
trans := trans - 3
winset, transparent, %trans%, splash
}

exitapp

_________________
help to be helped
Back to top
View user's profile Send private message
brettahk



Joined: 05 Dec 2007
Posts: 19

PostPosted: Wed Dec 19, 2007 8:18 pm    Post subject: Reply with quote

hmm this script was working for me and now every time it starts fading my computer and script will run extremely slow until the script is closed.
Back to top
View user's profile Send private message
iason



Joined: 01 Nov 2005
Posts: 135

PostPosted: Thu Dec 20, 2007 6:45 pm    Post subject: Reply with quote

brettahk wrote:
was working for me and now...
Trace back your changes. Wink
_________________
help to be helped
Back to top
View user's profile Send private message
Display posts from previous:   
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