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.

Member Avatar for ztini

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);
        }
    }

Sorry for not answering. Sadly, I eventually abandoned the project. :(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.