| View previous topic :: View next topic |
| Author |
Message |
BMP_ Guest
|
Posted: Fri Feb 25, 2005 9:11 am Post subject: Scrool Box posibel ? |
|
|
It is posibel to make a Messagebox with some Text in it and to scrool the Text ?
Like the Starwars text. The Text comes from the downside of the box and fly out upper side of the box.
Greetz
Marcus |
|
| Back to top |
|
 |
SanskritFritz
Joined: 17 Feb 2005 Posts: 283 Location: Hungary, Budapest
|
Posted: Fri Feb 25, 2005 11:21 am Post subject: |
|
|
Yes, nearly everything is possible with AHK
I would create a GUI with a text, and in a timer event set the text coordinates. But I'm only a beginner, so wait for the gurus for real answers  _________________ Is there another word for synonym? |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Feb 25, 2005 12:48 pm Post subject: |
|
|
| Although I don't think you can do it with a MsgBox (maybe with ControlSetText), you could do it with a GUI window. BoBo made a script with a similar concept at http://www.autohotkey.com/forum/viewtopic.php?t=2137 -- it scrolls text along the bottom of the screen instead of in a window. |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Feb 25, 2005 3:25 pm Post subject: |
|
|
Thank you for the Link....
It have help me a lot. Now i have written the script:
| Code: | Fade = 0
Loop
{
Sleep, 2500
If Fade = 2
Fade -= 2
GUI: ;---------------------------------------
Text = This is a small Line`n`nThis is a longer Line`n`nThis is the very longest Line
TextVPos = center
FontSize = 14
Font = Arial
Color = 0000FF
FadingSpeed = 1
; ------------------------------------------
Screen = %A_ScreenHeight%
Pos = %A_ScreenHeight%
Ende = %A_ScreenHeight%
EndPos = %A_ScreenHeight%
Gui, Color, %Color%
Gui, Font, s%FontSize%, %Font%
Gui, Add, text, ,%Text%
DetectHiddenWindows, on
WinSet, TransColor, %Color% 150,, %Text%
WinSet, AlwaysOnTop, On
Gui, -Caption
Gui, Show, X-500 Y%TextVPos%
Gui, Cancel
WinGetPos, X, Y, GUIWidth, Height,, %Text%
If Fade = 0
{
EndPos = %A_ScreenHeight%
EndPos -= %ENDE%
}
Loop
{
If Fade = 0
Pos --
Gui, show, Y%Pos% x%TextVPos%
If Pos = %ENDPOS%
{
Loop,300
{
If Fade = 0
Pos --
Gui, show, Y%Pos% x%TextVPos%
Sleep, %FadingSpeed%
}
EXITAPP
}
Sleep, %FadingSpeed%
}
} |
But is it Posibel to CENTER the Text in the Gui ?
I have not found a Escapecommand like ´n for that... |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1718
|
Posted: Fri Feb 25, 2005 3:43 pm Post subject: |
|
|
hey nice script buddy!
to center a control's text just include '+Center' in its options. _________________
 |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Fri Feb 25, 2005 3:44 pm Post subject: |
|
|
Nice
But i think there's a slight difference to what you wanna accomplish (but I guess you're on the half way trough).
That famous StarWars-Fading-Intro is scrolling/moving its lines up one level while its (font) size is decreasing with every step. That way you'll get that "fading into the deep" 3D imagination thing. Isn't it ? |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Feb 25, 2005 3:56 pm Post subject: |
|
|
| BoBo wrote: | | That famous StarWars-Fading-Intro is scrolling/moving its lines up one level while its (font) size is decreasing with every step. That way you'll get that "fading into the deep" 3D imagination thing. Isn't it ? |
Yes then i have reach 150%
But so i think its ok... |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Fri Feb 25, 2005 8:13 pm Post subject: |
|
|
This is very cool! infact so that I will use it on my next project for credit listings. Great Job! _________________ my lame sig  |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Fri Feb 25, 2005 8:26 pm Post subject: |
|
|
"Credit listings"? How many people work on your AHK projects at a time?  |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Fri Feb 25, 2005 9:21 pm Post subject: |
|
|
2, some times 3 lol. it should be more. it was just my first thought of a use for this _________________ my lame sig  |
|
| Back to top |
|
 |
BMP. Guest
|
Posted: Fri Feb 25, 2005 10:07 pm Post subject: |
|
|
| jonny wrote: | "Credit listings"? How many people work on your AHK projects at a time?  |
In the momend we are five peaple direct. And about 10 in the background. |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Fri Feb 25, 2005 10:40 pm Post subject: |
|
|
Need one more? _________________ my lame sig  |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Fri Feb 25, 2005 11:02 pm Post subject: |
|
|
I suppose I should be surprised that someone is seriously developing in AutoHotkey, but I'm not. After all, it's been a great introduction to programming for me for the past couple of months. Only recently have I had to start learning a more powerful language. AutoHotkey rocks, and I'm surprised it's not way more popular than it should be.
P.S. Echoing IU: Need one more?  |
|
| Back to top |
|
 |
|