Hello,

I'm trying to write a simple Clicker program to automate room-joining on GArena: 2 clicks to attempt to join, 1 attempt per 5 seconds.

That means I have to simulate 2 x mouseButton1 clicks every 5 seconds - easy.

The problem with my clicker, as well as with other automating programs, is that it doesn't work _inside_ the GARENA program. It works fine in windows/other programs.


The GArena program somehow detects that the actions aren't coming from the mouse, but another application. How to bypass this?

Thanks.

You're asking for help on how to circumvent security measures on another application? That is not very ethical...

Perhaps you should gander at the Member Rules:

Keep It Legal

Do ensure you own the intellectual property rights to everything that you post
Do not post copyright-infringing material
Do not post pornographic material, nor link to it
Do not ask about obtaining pirated software, nor link to it
Do not ask for help to pursue any illegal activity including, but not limited to, hacking and spamming
Do not pursue any illegal activity within forum posts or by PM

Okay.

I have an application that detects mouse clicks aren't coming from the mouse, but are generated by a program.

How does it detect this and how can I bypass it?

Thanks.

@ Buffalo101 wrote

that detects mouse clicks aren't coming from the mouse, but are generated by a program

coming from Robot???, that's no good idea, but anyway ... just to add (or create someClass extends MouseAdapter)

there you have overRide

public void mousePressed(MouseEvent e) {...
public void mouseDragged(MouseEvent e) {...
public void mouseReleased(MouseEvent e) {...

and add two mwthods

public void registerComp(Component... components) {
        for (Component component : components) {
            component.addMouseListener(this);
        }
    }
//and
    public void unRegisterComp(Component... components) {
        for (Component component : components) {
            component.removeMouseListener(this);
        }
    }
This question has already been answered. Start a new discussion instead.