Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 05:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB.Net] Multiple CO's?

Discussion on [VB.Net] Multiple CO's? within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2006
Posts: 136
Received Thanks: 15
[VB.Net] Multiple CO's?

Hello everyone,
Im trying to learn some stuff about memory reading/writing
(I'll Stick with reading for now :P)
I figured out how to read a couple memory addresses like for example money and VP's, but now yes here comes the problem it seems to be unable to read from multiple CO windows!
I know it's so silly!

So my question is how can I solve this any pointers, samples, guides (Just about ANYTHING that helps will do!)

I thank you for your time reading this and maybe the time you take for responding
purplehaze is offline  
Old 08/25/2008, 00:44   #2
 
elite*gold: 0
Join Date: Apr 2006
Posts: 23
Received Thanks: 4
You would have to create a checklist/itemlist, and make a thread scan for clients, using FindWindowsLike, or something (thats what i did), and just put the client-scan part in a while(true) loop, (make sure to add Threading.Sleep(1000) or so, otherwise it will cause major CPU usage). then after it has scanned for clients, make it add them all to an array and also to your list.

when you want to specify a certain client, you would get the user to click his client, in the checklist/itemlist and then read the item's INDEX, from the list, and read the array's value at the index of the list, containg HWND, or PID or something like that, for example:

void chklst_Click(sender e) //<--cannot remember example args xD
{
for(int i = 0;i<=chklst.Items.Checked-1;i++)
{
ThreadStart(SpeedHack((int)myArray[i]));
}
}

That example code, is based on C#, and just off the top of my head. It would call the ThreadStart function, to every checked item, on the check list, with the arguments of the OTHER array's value at the specified index. (if you dont understand, dont worry - i am very bad at explaining)

And perhaps, in the SpeedHack function, it could have
uint SpeedHack(void* args)
{
while(true){
int speedval = 128;
WriteProcessMemory((int)args,0xSPEEDADDRESS,speedv al,4,null); //<-probably incorrect, just off memory.
Threading.Sleep(1500);
}
}

Maybe that's of some help, im sorry for bad explaining, i tried, but i probably failed and made you more confused.
Leo_2 is offline  
Thanks
1 User
Old 08/25/2008, 00:53   #3
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
FindWindowEx
EnumChildWindows
EnumChildProc
...

There's a number of ways to do it. Check those functions out on .
unknownone is offline  
Thanks
1 User
Old 08/25/2008, 01:10   #4
 
elite*gold: 0
Join Date: Feb 2006
Posts: 136
Received Thanks: 15
Thank you both for the replies very appreciated,
Why didnt I think of FindWindowEx thanks a bunch

Edit: I remember why i didnt think of that
See if i use FindWindowEx It most probably find the same window again instead of the other
So what I want to do is like attach it to the CO process on top, So if the user Alt tabs to a different CO screen the Money, VP's and what not changes to that users stuff
Correct me if im wrong

Right now i have this:

Code:
        Dim myProcesses As Process() = Process.GetProcessesByName("Conquer")
        If myProcesses.Length = 0 Then
            MessageBox.Show("No Conquer Client found!")
            Exit Sub
        End If

        Dim processhandle As IntPtr = OpenProcess(PROCESS_ALL_ACCESS, 0, myprocesses(0).Id)
        If processhandle = IntPtr.Zero Then
            Exit Sub
        End If
So maybe this needs a few changes in order to make it read the window on top?
purplehaze is offline  
Old 08/25/2008, 02:37   #5
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
When you use FindWindowEx, you need to set the parent window as the conquer window you previously found, otherwise it'll only find the topmost one. (Setting parent to NULL uses the desktop as the start point)
Code:
for(int i=0;;i++)
{
    if (i==0) hwnd[i] = FindWindowEx(NULL, NULL, NULL, "[Conquer 2.0]");
    else hwnd[i] = FindWindowEx(hwnd[i-1], NULL, NULL, "[Conquer 2.0]");
    if (hwnd[i]==NULL) break;
}
...etc. You get the idea.
unknownone is offline  
Thanks
3 Users
Old 08/28/2008, 18:39   #6
 
elite*gold: 0
Join Date: Feb 2006
Posts: 136
Received Thanks: 15
**** i cant get it to work and cant find any VB.Net examples either, I'll keep looking if anyone got an example it would be much appreciated
purplehaze is offline  
Reply


Similar Threads Similar Threads
Need multiple bot help
08/30/2010 - Diablo 2 - 2 Replies
so hoffe ich hab hier nicht falsch gepostet denn wie man sehen kann bin ich neu hier :) also ich möchte mit meiner soso und hdin zusammen boten... das heißt beide sollen zusammen im game sein... sollten cs und baal zusammen machen... soso telt bis cs macht tp und hdin hilft cleanen ...
CO's T3xas Holdem hack?
03/05/2010 - Conquer Online 2 - 9 Replies
are there any hacks for it cause this one guy kept going all in at begginning of certain hands and the last card always was the winner for him, like he got a straight going all in 40mil, it's suspicous, but other times he didn't go all in and folded when other people bet...
Anyone know how to turn off co's graphic?
06/09/2009 - Conquer Online 2 - 2 Replies
Anyone know how to turn off co's graphic? Since the recent patch i couldn't turn it off with the ini folder :mad:.
[Question] Sending text to CO's chat lines
09/13/2008 - Conquer Online 2 - 2 Replies
How would I send text to the chat or to the red system text in the upper left corner of the screen? Would I have to send my own packet? Basically I want to: Hit a hotkey Read in the number of kills I have for demon exterminator. Have the number of kills left displayed in the chat. This way, rather than click "Items" and put my mouse over it, (which requires stopping and blocking half your screen) I can just hit Alt-A or something convinient for where I place my hand to show my...
multiple...
07/16/2008 - 9Dragons - 11 Replies
can some1 tell how to play with 2 acc on 1pc and 1 IP ? i mean lounc 2x 9Dragons at the same time...and play with both of them at the same time...



All times are GMT +2. The time now is 05:28.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.