Jump to content

Auto Click Help


Recommended Posts

I wanted to make a script that left click a place on my computer screen every 2 seconds in a windowed program, problem is its not doing anything when i have the window up but when i leave my desktop open it works fine this is what I'm using

Sleep(2000);

While 1 < 2

MouseMove(1014, 811, 0); //Click Start

MouseClick("Left");

Sleep(2000);

WEnd

Link to comment
Share on other sites

.... problem is its not doing anything when i have the window up but when i leave my desktop open it works fine ...

Can you clarify this statement above? What exactly is working and what exactly isn't working?

this is what I'm using

Sleep(2000);

While 1 < 2

MouseMove(1014, 811, 0); //Click Start

MouseClick("Left");

Sleep(2000);

WEnd

You'll want to enclose your code in code tags which will make it easier for others to read.

e.g.,

Sleep(2000);
While 1 < 2
   MouseMove(1014, 811, 0); //Click Start
   MouseClick("Left");
   Sleep(2000);
WEnd

Much luck and welcome to the fourm!

Edited by Fubarable
Link to comment
Share on other sites

you are trying to make a game bot or some sort? i know various games that use Ahn's lab hackshield it blocks out all MouseClick simulations (even Send function).

if you are not trying to bot prove me otherwise.

Edit:

why this

Sleep(2000);
While 1 < 2
   MouseMove(1014, 811, 0); //Click Start
   MouseClick("Left");
   Sleep(2000);
WEnd

when you can do it like this

While 1
   Sleep(2000)
   MouseClick("Left", 1014, 811, 1, 0)
WEnd
Edited by Zibit
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...