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 

Scrool Box posibel ?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
BMP_
Guest





PostPosted: Fri Feb 25, 2005 9:11 am    Post subject: Scrool Box posibel ? Reply with quote

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

PostPosted: Fri Feb 25, 2005 11:21 am    Post subject: Reply with quote

Yes, nearly everything is possible with AHK Wink
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 Smile
_________________
Is there another word for synonym?
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Feb 25, 2005 12:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Guest






PostPosted: Fri Feb 25, 2005 3:25 pm    Post subject: Reply with quote

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

PostPosted: Fri Feb 25, 2005 3:43 pm    Post subject: Reply with quote

hey nice script buddy!
to center a control's text just include '+Center' in its options.
_________________
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Fri Feb 25, 2005 3:44 pm    Post subject: Reply with quote

Nice Very Happy

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






PostPosted: Fri Feb 25, 2005 3:56 pm    Post subject: Reply with quote

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% Wink
But so i think its ok...
Back to top
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Fri Feb 25, 2005 8:13 pm    Post subject: Reply with quote

This is very cool! infact so that I will use it on my next project for credit listings. Great Job!
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Feb 25, 2005 8:26 pm    Post subject: Reply with quote

"Credit listings"? How many people work on your AHK projects at a time? Very Happy
Back to top
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Fri Feb 25, 2005 9:21 pm    Post subject: Reply with quote

2, some times 3 lol. it should be more. it was just my first thought of a use for this
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
BMP.
Guest





PostPosted: Fri Feb 25, 2005 10:07 pm    Post subject: Reply with quote

jonny wrote:
"Credit listings"? How many people work on your AHK projects at a time? Very Happy

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

PostPosted: Fri Feb 25, 2005 10:40 pm    Post subject: Reply with quote

Need one more?
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Feb 25, 2005 11:02 pm    Post subject: Reply with quote

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? Laughing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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