December 27, 200618 yr I already attached it to the original post a few days ago, please take a look... Ted.
December 28, 200618 yr 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 scrollCheck it out from http://rewolf.cjb.net/I'll attach in case any problemsscroller.v1.01.zip Edited December 28, 200618 yr by yamraaj
December 29, 200618 yr I was experimenting a while ago coding in asm some text effects using api, if people are interested i can send/post some sources..
December 29, 200618 yr @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'
December 29, 200618 yr if people are interested i can send/post some sources..That would be nice PuNkDuDeif u can send em to me plzzthks in advanceAK-47.
October 16, 200717 yr 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?
October 16, 200717 yr 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
October 16, 200717 yr 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 CreateThreadWell 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
October 16, 200717 yr 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, eaxThe above code is wrong. Should be push eaxcall GetDCThat's why better stick to invoke if using masmu could post ur source or i will code a quick one if u want.
October 16, 200717 yr 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, eaxThe above code is wrong. Should be push eaxcall GetDCThat's why better stick to invoke if using masmu 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
November 4, 200717 yr Author Coded here my text scroller, really easy...appz.rar Edited November 4, 200717 yr by arlequim
November 5, 200717 yr Hey thanks a lot everyone who posted in this thread its helped me a lot!btw anyone do any sine scrollers with ASM?
November 6, 200717 yr btw anyone do any sine scrollers with ASM?check out the source:http://www.tuts4you.com/forum/index.php?au...mp;showfile=195actually it's just a few lines to add a sine..
November 8, 200717 yr Thanks Ufo. I am going to have to try using this in my next keygen. thanks again mate
November 9, 200717 yr I dont know if this will work in anything besides delphi, but: DoubleBuffered := True; Will remove the flicker from timer
February 21, 200817 yr 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 February 22, 200817 yr by diablo2oo2
February 21, 200817 yr 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 February 21, 200817 yr by Ufo-Pu55y
February 22, 200817 yr 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... ufo, are online on irc sometimes?
February 22, 200817 yr 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... 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 February 22, 200817 yr by Ufo-Pu55y
February 25, 200817 yr 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... 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