Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact
>

.NET 

Ghetto Scroll (Auto-scroll for NetSeal Theme ListView)

Hey all,

Working on my crypter I encountered a problem. The NSTheme does not have an option to scroll to the bottom of the listview. So, I created a pretty ghetto way to do it.
It works by getting a corner of the form(top left in my case, can be changed), and adding values to the x and y to point the cursor to the correct starting point. Then clicks down, does the same process again to go to the bottom point, then releases mouse.

Visual Basic(Used a converter: may be errors)
Spoiler (Click to View)

C#
Spoiler (Click to View)

Quick example of how it looks in my crypter:
[Image: pHqXSYJ.gif]

This can be applied for other controls as well with a little tweaking. Hope this is useful to others.

Enjoy
-debug
That has to be the worse way I can think of to auto scroll.
I believe most controls with a scrollbutton have a scrolltoview function where you can scroll to the last item. But good job nonetheless.
EDIT: Yep:
http://www.csharp-examples.net/autoscroll/
(Apr 9, 2015 03:59 AM)Cornflower Blue இڿڰۣ-ڰۣ— Wrote:  That has to be the worse way I can think of to auto scroll.

True. True true true. As true as 1+1=2
Assert failure(PID 10704 [0x000029d0], Thread: 10960 [0x2ad0]): pBuffer != NULL
wait, i have never seen that code before so i may be wrong here but the standard listview has an insert option.
Code
ListView1.Items.Insert(0, New ListViewItem With {.Text = cur})

why not insert your text at the first position?
The problem is that the theme does not have these standard scroll functions, or anything that would allow me to auto scroll. So I didn't feel like figuring out how to code those functions, so I wrote this way.
(Apr 9, 2015 09:20 AM)debug Wrote:  The problem is that the theme does not have these standard scroll functions, or anything that would allow me to auto scroll. So I didn't feel like figuring out how to code those functions, so I wrote this way.

I'm sorry, but you didn't feel like going in, seeing how the class handled scrolling, find the "OnMouseWheel" event at the bottom of the class, and see it reference a "VS" variable of "NSVScrollBar" type, or the fact that you could simplify your code down to
Code
public void ScrollToEnd()
{
    VS.Value = VS.Maximum;
}
inside the ListView class and be done with it?

Yet you coded a crypter, which will require a lot more dedication and effort to make sure it remains FUD, and works with multiple RATs, Keyloggers, and other malware being sold on here AND other websites.
(Apr 9, 2015 09:34 AM)Nikey646 Wrote:  I'm sorry, but you didn't feel like going in, seeing how the class handled scrolling, find the "OnMouseWheel" event at the bottom of the class, and see it reference a "VS" variable of "NSVScrollBar" type, or the fact that you could simplify your code down to
Code
public void ScrollToEnd()
{
    VS.Value = VS.Maximum;
}
inside the ListView class and be done with it?

Yet you coded a crypter, which will require a lot more dedication and effort to make sure it remains FUD, and works with multiple RATs, Keyloggers, and other malware being sold on here AND other websites.
Yeah you're right. But I had an idea that I wanted to try so I did.
(Apr 9, 2015 09:59 AM)debug Wrote:  Yeah you're right. But I had an idea that I wanted to try so I did.

>had an idea that i wanted to try

(Apr 9, 2015 09:20 AM)debug Wrote:  The problem is that the theme does not have these standard scroll functions, or anything that would allow me to auto scroll. So I didn't feel like figuring out how to code those functions, so I wrote this way.

>didn't feel like figuring out how to code those functions

Something doesn't add up.. Even if it was an idea, don't release it as a solution when it's literally the worst way to handle something.

That's like saying "hm, i'm not sure how to get to the movie theater, so instead of using a map i'm going to get someone to steer my car while i drive to get there, instead of just looking up the address of the theater and putting it in my gps.."

Sure, it works, but it's not a "solution" by any means and I don't think it should be shared as one. ESPECIALLY if you are trying to sell a crypter as "coded from scratch" (calling bs)
[Image: 86251a37e635a21aea7eb7e014b0d820.gif]
(Apr 9, 2015 04:26 PM)Tedd Wrote:  >had an idea that i wanted to try

>didn't feel like figuring out how to code those functions

Something doesn't add up.. Even if it was an idea, don't release it as a solution when it's literally the worst way to handle something.

That's like saying "hm, i'm not sure how to get to the movie theater, so instead of using a map i'm going to get someone to steer my car while i drive to get there, instead of just looking up the address of the theater and putting it in my gps.."

Sure, it works, but it's not a "solution" by any means and I don't think it should be shared as one. ESPECIALLY if you are trying to sell a crypter as "coded from scratch" (calling bs)
I'm well aware of the fact that this is a horrible way to do it, hence "ghetto scroll." I did not claim that this was a proper way to do it. And since when is something that completes a designated task, not a solution?
(Apr 9, 2015 04:26 PM)Tedd Wrote:  >had an idea that i wanted to try

>didn't feel like figuring out how to code those functions

Something doesn't add up.. Even if it was an idea, don't release it as a solution when it's literally the worst way to handle something.

That's like saying "hm, i'm not sure how to get to the movie theater, so instead of using a map i'm going to get someone to steer my car while i drive to get there, instead of just looking up the address of the theater and putting it in my gps.."

Sure, it works, but it's not a "solution" by any means and I don't think it should be shared as one. ESPECIALLY if you are trying to sell a crypter as "coded from scratch" (calling bs)

He's coded his crypter from scratch, I don't see how thats relevant at all.
Don't believe him? Go buy one of the shitty skidded 6 time sold crypters all over the marketplace.
[Image: PVoDiqS.png]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by Night06phereDec 28, 2021 07:07 PM 1 153 Dec 28, 2021 07:07 PM
Last Post: VmX5
[C#] by FryPanJul 4, 2018 03:05 PM 2 200 Jul 4, 2018 03:05 PM
Last Post: FryPan
[.NET] by passwordsMay 30, 2018 01:11 PM 14 936 May 30, 2018 01:11 PM
Last Post: System[X]