Need a Gui or something! menu

Shout-Out

User Tag List

Results 1 to 2 of 2
  1. #1
    tagala's Avatar Member
    Reputation
    2
    Join Date
    Oct 2007
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need a Gui or something!

    i made an Aimbot for the fps C&C Renegade works good and all but i have a hard time turning it on and off so if anyone here could please find a way to turn it on or off from ingame (or if it only works while ur holding down shift or tab or something like that) that would be great.

    How it works: detects pixel color of the crosshair (it changes when you scroll over an enemy) and depending on the pixel color, it clicks the button. it is mostly used for sniping.

    here is the code:
    Code:
    import java.awt.*;
    import java.awt.event.*;
    
    public class Bot
    {
        private boolean running = false;
        private boolean btnPressed = false;
        private Robot myRobot;
        private Color middle;
        public Bot() throws AWTException
        {
            myRobot = new Robot();
        }
        public void startBot()
        {
            running = true;
            checkPointer();
        }
        public void stopBot()
        {
            running = false;
        }
        public void checkPointer()
        {
            while (running == true)
            {
                myRobot.delay(1);
                middle = myRobot.getPixelColor(399, 300);
                if (middle.getRed() < 210 && middle.getRed() > 185 && middle.getGreen() < 10 && middle.getBlue() < 10)
                {
                    myRobot.mousePress(InputEvent.BUTTON1_MASK);
                    btnPressed = true;
                }
                else if(btnPressed = true)
                {
                    myRobot.mouseRelease(InputEvent.BUTTON1_MASK);
                    btnPressed = false;
                }
            }
        }
        public void main (String[] args)
        {
            startBot();
        }
    }

    Need a Gui or something!
  2. #2
    nopz's Avatar Active Member
    Reputation
    67
    Join Date
    Aug 2009
    Posts
    56
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You can try to launch this in a thread and when a certain key is pressed the thread is stoped or paused.

    Here is a thread about Hooking in java ( Java Native Interface (JNI) - Re: <b>Keyboard or Mouse hook in JNI</b> [Locked] )

Similar Threads

  1. i need some help with something ;)
    By lxhackdxl in forum Community Chat
    Replies: 0
    Last Post: 03-06-2011, 06:18 PM
  2. Need someone to test something.
    By cmall1234 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-09-2008, 06:03 PM
  3. [Looking for help. Need help to find somethings.
    By Zaeoir in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 05-23-2008, 01:31 PM
All times are GMT -5. The time now is 09:07 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search