Dude.. i get urs yeh.. i load up conquer. i load the auto scatter up BUT it doesnt do anything.. =\ my pc jus fucked up or do i gotta be a certain res? or..? sorry man that was jus the last noob question i promise =X
Making pixel-based bots is a start. Thx m8, I'll get right on it.Quote:
Originally posted by inSertCoiN@Dec 7 2006, 16:51
I'm not realy good at manipulating with CO memory, expecialy not DMA. I will only show you how to create macros and manipulating CO with pixel based coding (wich can be used to make pixel-based bot). Also I will show you how you can use some static CO memory data based on [Only registered and activated users can see links. Click Here To Register...].
VB 2005 express is lil diferent from VB 6.0 but you can find tutorials on the internet how to adapt the code.
Once again I would like to encourage all the VB coders out here to go publik with theyr work.
*source code uploaded*
As far as I know COtobo works with memory reading and code injecting, not sending packets. Sadly I still haven't figured those thing out but when/if I do i'll make them public ;).Quote:
Originally posted by Bud_wis_er_420@Dec 7 2006, 22:17
Any idea how things like in, COtobo, dropping ores with inv window closed and like loading new arrows with out arrows being in hotkey slot or inv not being open. I assume these things can't be done just with pixel based botting cause it looks for pixes and clicks where u tell it to.
Ok I been playing with the code and its all pretty simple. Can u make a simple bot to click on something in game. Mabye where it has to find the object .
VB studio 2005 is newer...Quote:
Originally posted by Bud_wis_er_420@Dec 8 2006, 16:01
Thx alot m8. Looking forward to it. Meanwhile I'll be getting better acquainted with VB. which vers of VB is newer VB 6 or VB studio 2005?
1. If you realy need a code that checks the screen res I can find it for you but I sugest to make your bot/macro for 1 screen resolution because you will have to doublewrite the coordinates and it will take lots of work. I make/going to make my programs for 1024*768 and state that they only work on that resolution.Quote:
Originally posted by Bud_wis_er_420@Dec 11 2006, 00:04
have u had a chanse to get the Co medic for me yet. I'm having a problem on figuring out how to bring the CO window process to the forground. And how to decide if its in 800X600 mode or the other. Because if in 800X600 the pixel cords be different. And lets say someone has there CO client in 800X600 widow mode. How do I make it where the pixels start on the client and not the computer screen.
Example here: [Only registered and activated users can see links. Click Here To Register...]
And how do I tell wether the clent is in 800X600 mode or the 1024X768 mode. A simple if statment can change the needed code to switch. I'm anxious to get started and these are the things i need to know to get me started.
Btw +1k for all the help you've given me.
program New; begin FindWindow('New Text Document - Notepad') ActivateClient; Sendkeys('It found your new note pad doc and now it will save it') end.
cool, thx for teaching..Quote:
At the begining sorry for my bad speling...
I decided to contribute to the comunity and help some people wich are begining to program in VB with some usefull stuff I know. Also I would like to encurage all the VB programers in this forum to post programs and short tutorials in this topic so that we make a good usefull VB library
I will start with small programs and go big and add new tool with tutorial when I have time. If this topic spreads in more pages list thro them all because I will post new tools with How To in diferent posts. I hope my work will be found usefull and will help some coding beginers.
--------------------------------------------------------------------------
Program no.1: AutoScater
1. Open new project and add new module. In the module paste this.
QUOTE
Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Option Explicit
Public Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Public Declare Function SetCursorPos Lib "user32" (ByVal X As Long, ByVal Y As Long) As Long
Public Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
Public Const MOUSEEVENTF_LEFTDOWN = &H2
Public Const MOUSEEVENTF_LEFTUP = &H4
Public Const MOUSEEVENTF_MIDDLEDOWN = &H20
Public Const MOUSEEVENTF_MIDDLEUP = &H40
Public Const MOUSEEVENTF_RIGHTDOWN = &H8
Public Const MOUSEEVENTF_RIGHTUP = &H10
Public Const MOUSEEVENTF_MOVE = &H1
Public Type POINTAPI
X As Long
Y As Long
End Type
Public Function GetCurrentX() As Long
Dim Position As POINTAPI
GetCursorPos Position
GetCurrentX = Position.X
End Function
Public Function GetCurrentY() As Long
Dim Position As POINTAPI
GetCursorPos Position
GetCurrentY = Position.Y
End Function
Public Sub LeftClick()
LeftDown
LeftUp
End Sub
Public Sub LeftDown()
mouse_event MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0
End Sub
Public Sub LeftUp()
mouse_event MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
End Sub
Public Sub MiddleClick()
MiddleDown
MiddleUp
End Sub
Public Sub MiddleDown()
mouse_event MOUSEEVENTF_MIDDLEDOWN, 0, 0, 0, 0
End Sub
Public Sub MiddleUp()
mouse_event MOUSEEVENTF_MIDDLEUP, 0, 0, 0, 0
End Sub
Public Sub MoveMouse(xMove As Long, yMove As Long)
mouse_event MOUSEEVENTF_MOVE, xMove, yMove, 0, 0
End Sub
Public Sub RightClick()
RightDown
RightUp
End Sub
Public Sub RightDown()
mouse_event MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0
End Sub
Public Sub RightUp()
mouse_event MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0
End Sub
The first GetAsyncKeyState function is used to get the current state of a key. This works with any key on keyboard as well as with the mouse.
The mouse_event and SetCursorPos are used to control the mouse. GetCursorPos is used to return you the curent position of your mouse.
How to control the mouse? Lets say you want to move the cursol to pixel coordinates 500, 500 and click. You simply call...
QUOTE
MoveMouse 500, 500
LeftClick
Also see the other functions in the module... you can use any like midle click,right click ect. More about mouse control in next tutorials. Now lets return to our AutoScater.
On the main form add a timer and set its "Interval" value to 150. This will call the code under timer every 0.15 sec, In our case will autoclick if you hold the right button every 0.15 sec. I set it to so low because i dont know the minimum time between 2 scaters and I dont want to miss any 0.1 sec
Now under timer add this code:
QUOTE
Private Sub timMain_Timer()
result = GetAsyncKeyState(vbKeyRButton) 'gets the state of the right mouse button
If result = -32768 Then 'if its down
RightUp 'release it
RightDown 'and return it down again untill you release it in reality
End If
End Sub
Edit: not to confuse any1, the timer should be renamed to "timMain" or replace the "timMain" in the above code with "Timer1".
Now compile and vala... you have an AutoScater wich will constantly press righ mouse button whyle you hold it.
I hope this helped some people... More will come