Simplest Pixel Bot menu

Shout-Out

User Tag List

Page 4 of 6 FirstFirst 123456 LastLast
Results 46 to 60 of 81
  1. #46
    drrrr56's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Status: Trade
    I just wanna know where the illegal statement is coming from ... :/

    Simplest Pixel Bot
  2. #47
    comic-1337's Avatar Banned
    Reputation
    18
    Join Date
    Jul 2016
    Posts
    97
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Was referring to ITexpert, code looks fine, just that you are missing something. Not inside the code, try googling the error
    Last edited by comic-1337; 07-30-2016 at 05:41 AM.

  3. #48
    drrrr56's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Status: Trade
    Could it be that I misplaced a bracket maybe?

  4. #49
    comic-1337's Avatar Banned
    Reputation
    18
    Join Date
    Jul 2016
    Posts
    97
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    public void nativeKeyTyped(NativeKeyEvent e) {
    if (NativeKeyEvent.getKeyText(e.getKeyCode()) == "Left Alt"){}
    }

  5. #50
    qqzzxxcc's Avatar Active Member
    Reputation
    28
    Join Date
    Jun 2012
    Posts
    72
    Thanks G/R
    43/18
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Status: Trade
    Here is my code, but it still has tendency to ignore keys or make them stuck.
    Code:
    import java.awt.*;
    import java.awt.image.BufferedImage;
    import org.jnativehook.GlobalScreen;
    import org.jnativehook.NativeHookException;
    import org.jnativehook.keyboard.NativeKeyEvent;
    import org.jnativehook.keyboard.NativeKeyListener;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import java.util.logging.LogManager;
    public class test4 implements NativeKeyListener{
    private static Robot robot;
    private static Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    private static double width = 1920;
    private static double height = 1080;
    private static BufferedImage img =null;
    private static int red = 0;
    private static int green = 0;
    private static int blue = 0;
    private static int rgb = 0;
    private static int modey = 53;
    private static Boolean on=false;
    private static Boolean hold = false;  
    private static Boolean appended=false;
    
    private static int globalOffsetX,globalOffsetY;
    
    private static final int SEARCH_WIDTH = 490;
    private static final int SEARCH_HEIGHT = 390;
    
    
    
    
    public static void main(String[] args) throws Exception {
    
         LogManager.getLogManager().reset();
            Logger logger = Logger.getLogger(GlobalScreen.class.getPackage().getName());
            logger.setLevel(Level.OFF);
    
            try {
                GlobalScreen.registerNativeHook();
            }
            catch (NativeHookException ex) {
                System.err.println("There was a problem registering the native hook.");
                System.err.println(ex.getMessage());
    
                System.exit(1);
            }
            
            robot = new Robot();
            test4 listen = new test4();
    
            while(true){
                GlobalScreen.addNativeKeyListener(listen);
                if(hold){ 
                    moveMouse(analysis(ss())[0],analysis(ss())[1]);
                }
            }
    }
    
    
        public void nativeKeyPressed(NativeKeyEvent e)  {
            if (e.getKeyCode() == NativeKeyEvent.VC_K) 
                hold = true;
    }
        public void nativeKeyReleased(NativeKeyEvent e) {
            if (e.getKeyCode() == NativeKeyEvent.VC_K)
                hold = false;
        }
    
        public void nativeKeyTyped(NativeKeyEvent e) {}
    
     
    private static void moveMouse(double x, double y){
    		if(appended){
    robot.mouseMove((int)((width/2)+x+60),(int) ((height/2)+y-20+modey));
    
    }
    }
    
    private static BufferedImage ss(){
    return robot.createScreenCapture(new Rectangle((int)(width/2)-245,(int)(height/2)-245, SEARCH_WIDTH,SEARCH_HEIGHT));
    }
    
    private static double[] analysis(BufferedImage iA) throws Exception{
    appended = false;
    for (int x = 0; x< iA.getWidth(); x ++) {
    for(int y = 0; y < iA.getHeight(); y ++) {
    rgb = iA.getRGB(x, y);
    red = (rgb >> 16) & 0x000000FF;
    green = (rgb >> 8 ) & 0x000000FF;
    blue = (rgb) & 0x000000FF;
    if(red>=251&&green<=3&&blue<=18){
    if(!appended){
    appended=true;
    globalOffsetX = x-(SEARCH_WIDTH/2);
    globalOffsetY = y-(SEARCH_HEIGHT/2);//145
    }
    }
    
    if(appended)
    break;
    }
    if(appended)
    break;
    }
    return new double[]{globalOffsetX,globalOffsetY};
    }
    
    
    }

  6. #51
    drrrr56's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Status: Trade
    Im still not sure whats the issue >.<

  7. #52
    comic-1337's Avatar Banned
    Reputation
    18
    Join Date
    Jul 2016
    Posts
    97
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess it's because you are in a while loop, try using a Timer

  8. Thanks qqzzxxcc (1 members gave Thanks to comic-1337 for this useful post)
  9. #53
    drrrr56's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Status: Trade
    Could you tell me what I need to fix ??...

  10. #54
    comic-1337's Avatar Banned
    Reputation
    18
    Join Date
    Jul 2016
    Posts
    97
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by drrrr56 View Post
    Im still not sure whats the issue >.<
    I gave you your answer in bold

  11. Thanks qqzzxxcc (1 members gave Thanks to comic-1337 for this useful post)
  12. #55
    drrrr56's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Status: Trade
    I am so lost at this point lol

  13. #56
    drrrr56's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Status: Trade
    @qqzzxxcc Do you know what I need to fix in the code?

  14. #57
    qqzzxxcc's Avatar Active Member
    Reputation
    28
    Join Date
    Jun 2012
    Posts
    72
    Thanks G/R
    43/18
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Status: Trade
    Originally Posted by comic-1337 View Post
    I guess it's because you are in a while loop, try using a Timer
    Thanks, that helped with hotkeys and high cpu load <3

  15. #58
    comic-1337's Avatar Banned
    Reputation
    18
    Join Date
    Jul 2016
    Posts
    97
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by qqzzxxcc View Post
    Thanks, that helped with hotkeys and high cpu load <3
    Yes because it's in Java, you can consider switching to C++, once you get the pseudo code on how to make an aimbot, switching language isn't hard, you just have to find the right syntax

  16. #59
    comic-1337's Avatar Banned
    Reputation
    18
    Join Date
    Jul 2016
    Posts
    97
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by drrrr56 View Post
    Could you tell me what I need to fix ??...
    Google for the error
    Last edited by comic-1337; 07-30-2016 at 09:58 AM.

  17. #60
    drrrr56's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Status: Trade
    Alright ill let you know the result

Page 4 of 6 FirstFirst 123456 LastLast

All times are GMT -5. The time now is 05:52 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search