Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How To Make The Text Scroll

Featured Replies

I already attached it to the original post a few days ago, please take a look... :)

Ted.

  • Replies 64
  • Views 32.7k
  • Created
  • Last Reply

Top Posters In This Topic

Just came to know abt this excellent scroll lib from rewolf...It' open source....so it won't be difficult to edit this for vertical scroller coz it's for horizontal scroll

Check it out from http://rewolf.cjb.net/

I'll attach in case any problems

scroller.v1.01.zip

Edited by yamraaj

@yamraaj ... in wolfs source ... balck text dosent work ...

I was experimenting a while ago coding in asm some text effects using api, if people are interested i can send/post some sources..

@PuNKDuDe

Why Don't You Attach The Sources ...

Many Of Us Needs Such Things And Are Intrested In It PuNKDuDe

And Thanx' In Advance Bro' :)

@PuNKDuDe

you are always welcome ...

if people are interested i can send/post some sources..

That would be nice PuNkDuDe

if u can send em to me plzz

thks in advance

AK-47.

  • 9 months later...

Has anyone here used ReWolf from HtB's scroller lib?

I can't seem to get it to scroll only on my window... The scrolling works fine - however it doesn't seem to use my form - it takes whatever coordinates I give it as the screen. So if I give it coords to my actual form, it will scroll - but when form is moved it stays in the same spot...

Any insight to this?

Has anyone here used ReWolf from HtB's scroller lib?

I can't seem to get it to scroll only on my window... The scrolling works fine - however it doesn't seem to use my form - it takes whatever coordinates I give it as the screen. So if I give it coords to my actual form, it will scroll - but when form is moved it stays in the same spot...

Any insight to this?

Maybe you are not passing handle of your window. Have you looked in the sources provided with the lib. When you create scroll thread then u should pass your window handle too.

From source

_init:

xor eax,eax

push 0

push esp

push eax

push hDlg ;This is what needs attention

push offset thProc

push eax

push eax

call CreateThread

Has anyone here used ReWolf from HtB's scroller lib?

I can't seem to get it to scroll only on my window... The scrolling works fine - however it doesn't seem to use my form - it takes whatever coordinates I give it as the screen. So if I give it coords to my actual form, it will scroll - but when form is moved it stays in the same spot...

Any insight to this?

Maybe you are not passing handle of your window. Have you looked in the sources provided with the lib. When you create scroll thread then u should pass your window handle too.

From source

_init:

xor eax,eax

push 0

push esp

push eax

push hDlg ;This is what needs attention

push offset thProc

push eax

push eax

call CreateThread

Well isn't that the same as... invoke CreateThread,0,0,addr thProc,hWnd,0,addr ThreadID ?

Then I use...

mov eax, hWnd

call GetDC

mov scrTest.hBkgDC, eax

Well isn't that the same as... invoke CreateThread,0,0,addr thProc,hWnd,0,addr ThreadID ?

Then I use...

mov eax, hWnd

call GetDC

mov scrTest.hBkgDC, eax

The above code is wrong. Should be

push eax

call GetDC

That's why better stick to invoke if using masm

u could post ur source or i will code a quick one if u want.

Well isn't that the same as... invoke CreateThread,0,0,addr thProc,hWnd,0,addr ThreadID ?

Then I use...

mov eax, hWnd

call GetDC

mov scrTest.hBkgDC, eax

The above code is wrong. Should be

push eax

call GetDC

That's why better stick to invoke if using masm

u could post ur source or i will code a quick one if u want.

Yea I changed everything to invokes and fixed it up a little bit and it all worked fine, thanks guys

  • 3 weeks later...
  • Author

Coded here my text scroller, really easy...

appz.rar

Edited by arlequim

Hey thanks a lot everyone who posted in this thread its helped me a lot!

btw anyone do any sine scrollers with ASM?

Thanks Ufo. I am going to have to try using this in my next keygen. thanks again mate

I dont know if this will work in anything besides delphi, but:

DoubleBuffered := True;

Will remove the flicker from timer :)

  • 1 month later...

Thx a lot men...

It's a greet subject...

--> Are they other Text Scroll?

  • 1 month later...

I have a problem with my own coded scroller. It works fine on usual windows. but when i set the window to WS_EX_LAYERED and make it transparent, the scroller doesnt move so smooth....

any ideas? i attached also the scrollercode.

scroller.window.problem.rar

Edited by diablo2oo2

I didn't try, but maybe double buffering helps, when it's layered :?

Swapping 2 DCs, after the scroller has been drawn or something.

Edited by Ufo-Pu55y

some links are broken! :blink:

Possibly because the thread is more than 2 years old? :P

I didn't try, but maybe double buffering helps, when it's layered :?

Swapping 2 DCs, after the scroller has been drawn or something.

i really dont understand what you mean. because i am new in gfx coding... :wacko:

ufo, are online on irc sometimes?

I didn't try, but maybe double buffering helps, when it's layered :?

Swapping 2 DCs, after the scroller has been drawn or something.

i really dont understand what you mean. because i am new in gfx coding... :wacko:

ufo, are online on irc sometimes?

Ah lol :happy:

I remember I had that prob in the past. All you need is to update the layered window.

I tried with UpdateLayeredWindow first like I'm doing for uPPP, but somehow it didn't work. Anyway

SetLayeredWindowAttributes is enough and doesn't require the mess of args for UpdateLayeredWindow.

Here we go:

	@loop:
.if [esi].scroll_pause==0
invoke BitBlt,local_hdc_text,0,0,[esi].scroll_width,local_scroll_height,local_hdc_window_copy,[esi].scroll_x,[esi].scroll_y,SRCCOPY
invoke TextOut,local_hdc_text,ebx,0,[esi].scroll_text,local_text_len
invoke BlendBitmap,local_hdc_text,local_hdc_window_copy,local_scroll_height,[esi].scroll_width,[esi].scroll_x,[esi].scroll_y,[esi].scroll_textcolor
invoke BitBlt,local_hdc_window,[esi].scroll_x,[esi].scroll_y,[esi].scroll_width,local_scroll_height,local_hdc_text,0,0,SRCCOPY
dec ebx
.if ebx==local_text_endpos
;---reset text position to begining---
mov ebx,[esi].scroll_width
.endif invoke SetLayeredWindowAttributes,[esi].scroll_hwnd,0,155,LWA_ALPHA; Well.. not 155 but the used transparency ofc ! .endif
invoke Sleep,30
jmp @loop

;)

Edited by Ufo-Pu55y

I didn't try, but maybe double buffering helps, when it's layered :?

Swapping 2 DCs, after the scroller has been drawn or something.

i really dont understand what you mean. because i am new in gfx coding... :wacko:

ufo, are online on irc sometimes?

Ah lol :happy:

I remember I had that prob in the past. All you need is to update the layered window.

I tried with UpdateLayeredWindow first like I'm doing for uPPP, but somehow it didn't work. Anyway

SetLayeredWindowAttributes is enough and doesn't require the mess of args for UpdateLayeredWindow.

Here we go:

	@loop:
.if [esi].scroll_pause==0
invoke BitBlt,local_hdc_text,0,0,[esi].scroll_width,local_scroll_height,local_hdc_window_copy,[esi].scroll_x,[esi].scroll_y,SRCCOPY
invoke TextOut,local_hdc_text,ebx,0,[esi].scroll_text,local_text_len
invoke BlendBitmap,local_hdc_text,local_hdc_window_copy,local_scroll_height,[esi].scroll_width,[esi].scroll_x,[esi].scroll_y,[esi].scroll_textcolor
invoke BitBlt,local_hdc_window,[esi].scroll_x,[esi].scroll_y,[esi].scroll_width,local_scroll_height,local_hdc_text,0,0,SRCCOPY
dec ebx
.if ebx==local_text_endpos
;---reset text position to begining---
mov ebx,[esi].scroll_width
.endif invoke SetLayeredWindowAttributes,[esi].scroll_hwnd,0,155,LWA_ALPHA; Well.. not 155 but the used transparency ofc ! .endif
invoke Sleep,30
jmp @loop

;)

Ufopussy! you are my hero! it works. next dup version with textscroller! thank you!

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.