Register for your free account! | Forgot your password?

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

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

Advertisement



Need help with autopotter

Discussion on Need help with autopotter within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2006
Posts: 12
Received Thanks: 0
Need help with autopotter

Hello everyone,

I was attempting to create an autopotter, Which basically spam the F-key's...

Now i was having a problem that it wouldnt spam in co... however, when i tried it in some other application, it did work...

This is the source i'm using:
Code:
        [DllImport("user32.dll", EntryPoint = "keybd_event", CharSet = CharSet.Auto, ExactSpelling = true)]
        private static extern void keybd_event(byte vk, byte bscan, uint flags, int extrainfo);

        const int KEYEVENTF_KEYUP = 0x2;
        const int KEYEVENTF_KEYDOWN = 0x0;


        public void SpamHotkeys()
        {
            //2 seconden wachten voordat hij spammed.
            Thread.Sleep(2000);

            for (int i = 0; i < 1; i++)
            {
                keybd_event((byte)Keys.F1, 0, (int)KEYEVENTF_KEYDOWN, 0); // F1 Press
                keybd_event((byte)Keys.F1, 0, (int)KEYEVENTF_KEYUP, 0); // F1 Release

                keybd_event((byte)Keys.F2, 0, (int)KEYEVENTF_KEYDOWN, 0); // F2 Press
                keybd_event((byte)Keys.F2, 0, (int)KEYEVENTF_KEYUP, 0); // F2 Release

                keybd_event((byte)Keys.F3, 0, (int)KEYEVENTF_KEYDOWN, 0); // F3 Press
                keybd_event((byte)Keys.F3, 0, (int)KEYEVENTF_KEYUP, 0); // F3 Release
            }
        }
If anyone has any idea why it wont work in co or knows a solution, this would help me alot...

Thanks in advance!
sklyman is offline  
Old 06/23/2012, 23:38   #2
 
elite*gold: 0
Join Date: Apr 2007
Posts: 223
Received Thanks: 30
well if you are spaming all them keys at once every 2 seconds i am sure that will get you botjailed really fast

but the way i do it is get into the memory and use my hp and then have it set so when my hp gets to a certain point i will press the key so it will not be spamming it
PKDemon is offline  
Old 06/24/2012, 03:19   #3
 
elite*gold: 0
Join Date: Nov 2006
Posts: 12
Received Thanks: 0
Okay nevermind, it seems when you debug, it runs without admin rights.

So when i open the .exe itself, everything works fine...

Been looking for this for 12 hours yesterday.. lmao *frustrating*
sklyman is offline  
Old 06/24/2012, 09:20   #4
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
PHP Code:
using System.Windows.Forms;

[
DllImport("user32.dll")]
public static 
extern int SetForegroundWindow(IntPtr hWnd);

public 
void Test()
{
SetForegroundWindow(/*Conquer.exe MainWindowHandle*/);
SendKeys.SendWait("{F1}");//{F2} or {F3} or {F4} etc

I tested it today and it works just fine.

Good luck.
{ Angelius } is offline  
Old 06/26/2012, 17:15   #5
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
I'd recommend writing it in C++, or grabbing and making use of the C# hooking library in this section. Why? You want to read the address of your HP and MP, and then when they get to a certain point (or lower), then you send your F1, F2, etc. That way you're much less likely to be botjailed.

Just remember not to actually name your executable "autopotter", as TQ's system will send you to an autoclicker jail (if I remember right.)
Zeroxelli is offline  
Reply


Similar Threads Similar Threads
Autopotter
06/16/2009 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 8 Replies
hallo, so wo ich hr so grad am scripten war hab ich euch ma nen autpotter gemacht:D er hat dauerpott drauf(sprich immer nur 1 drücken) dan noch das man eingeben kann wie viel abstand zwischen den potts is und noch das aufgehoben wird:mofo: bei fragen :confused: pn an mich aber eiglich erklärt der sich von alleine(weil zu jeder sache noch n anleitungsbutton drunder is) viel spaß und pls n paa THX an mich^^:)
AutoPotter
04/19/2009 - Metin2 - 2 Replies
Hi leute, suche ganz dringend nen autopotter thx
Autopotter
02/02/2009 - SRO Private Server - 4 Replies
Have fun. ;-) #link removed



All times are GMT +1. The time now is 19:47.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.