OK Guys. Enough VB questions and basic stuff. I have made this awesome guide for you folks to enjoy and read and I will be pointing here probably later on to help anyone that did not bother reading my post.
Most Useful Site ever: MSDN: Microsoft Development, MSDN Subscriptions, Resources, and More
THIS IS A VISUAL BASIC.NET GUIDE NOT A VB6 GUIDE ALTHOUGH SOME STUFF MIGHT RELATE.
So here we start:
Part 1 - Detecting Keypresses/Hotkeys
Obviously for any hack hotkeys/D3D9 menu's will be the most convenient thing to use. Since D3D9 implantation is relatively hard compared to hotkeys, lets just start with hotkeys.
The thing to use is GetKeyState() (Thank you xFaith!)
In VB you declare it like this:
Code:
Private Declare Function GetKeyState Lib "user32" (ByVal vKey As Long) As Integer 'Declares GetKeyState
And you use it like this:
Code:
GetKeyState(KeyCode)
It will return a value that you can experiment with in my example program that will be attached after fixing it up a bit...
Use it to detect keypresses so you can detect when a user has pressed a certain key, then it can maybe change a variable's value to start a code. This is probably the most simple way you can use hotkeys. Otherwise you can register hotkeys which is annoying and stuff...
Complete Key Code Listing here: Key Code Constants for Visual Basic 6.0 Users (Save a copy on your hard drive incase you ever need it while programing on the go)
Part 2 - Spam Bots
This will teach you how to make spam bots. Very simple way of making spam bots!
First of all you have to have intervals, I use Sleep() which is really useful... I also use a Timer to loop around...
Declare for Sleep:
Code:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwmilliseconds As Long) 'Declares for Sleep
Use:
Code:
Sleep(Miliseconds to wait)
Very simple stuff. This will help avoid Nexon's message flood protection.
Next is SendKeys.SendWait, I use SendWait because It just works better for me for some reason, don't know why. Its simple to use:
Code:
SendKeys.SendWait("Text Here")
Now you will also need a random thing inbetween words to make sure you don't get caught repeating stuff. Simple code:
Code:
SendKeys.SendWait("Text") 'Spam message
SendKeys.SendWait("{Enter}") 'Enter button
SendKeys.SendWait(Rnd()*100) 'Code to write a random number
Sleep(3000) ' Wait 3 seconds
Example code can be found in the attached example project.
Part 3 - Text File Editing and All the other Fun Stuff
Saving files can be useful for remembering CA directory from user input, useful for injectors to remember where the .dll to inject was located, write logs, and other ideas you can create!
I am just going right down the code and hopefully it will be self explanitory.
Note: VB does NOTHING for you. If your directory dosen't exsist, it will give an error, if the file your writing to is not yet created, it won't make that file for you, if your file is still being made (That step takes a while) it will return an exception. And other stuff. Post here for help on that...
Create Directory:
Code:
My.Computer.FileSystem.CreateDirectory("C:\New Directory") 'Creates Directory
Create File:
Code:
System.IO.File.Create("C:\New Directory\New File.txt") 'Creates the files...
Write To File
Code:
My.Computer.FileSystem.WriteAllText(TextBox1.Text & TextBox4.Text, TextBox2.Text, False) 'writes text to the textfile, It will overwrite all existing text
The false sets it to over-ride mode. If it is true, it will just amend.
Read From File:
Code:
My.Computer.FileSystem.ReadAllText("C:\New Directory\New File.txt") 'Reads text from file
Delete File:
Code:
My.Computer.FileSystem.DeleteFile(TextBox1.Text & TextBox4.Text) 'Deletes file...
Thank you for reading, This is all so far. I will post back more stuff like Memory Hacking (Need to test a few thing first...) and D3D9 Hooking (I just started...) with VB.net
I WILL BE UPLOADING THE EXAMPLE PROJECT UP A BIT LATER!
Example Project is up, feel free to look, just give me creds
Virus Scan: https://www.virustotal.com/analisis/d...fdc-1252644186