Jump to content

[C++] Mouse Click

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
12 replies to this topic

#1
LogicKills

LogicKills

    Programmer

  • Members
  • PipPipPipPip
  • 139 posts
/*

    Written by LogicKills;

    

    

    This program incorporates my,

    mouse-coordinate program, and my 

    timer program and combines them to 

    make a program to click an object

    for x amount of time.

    

    Have fun with it! And remember,

    Head over to logickills.org for more!!

    

    

    <LINKS>

    http://forum.codecall.net/classes-code-snippets/10581-turn-monitor-off.html

    http://forum.codecall.net/classes-code-snippets/11413-c-mouse-coor.html

    </LINKS>

    

    

    

*/


#include <windows.h>

#include <ctime>


int main()

{

    const int SEC = 20; // put how many seconds you want to click..

    const int CURSOR_X = 200; // x-coordinate of mouse

    const int CURSOR_Y = 144; // y-coordinate of mouse

    

    SetCursorPos(CURSOR_X,CURSOR_Y);

    

    clock_t delay = SEC *CLOCKS_PER_SEC;

    clock_t start = clock();

    while(clock() - start < delay)

    {

       mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);

    }

    

    return 0;

}


http://logickills.org
Science - Math - Hacking - Tech

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
So you use this to click some object on your screen multiple times? Not bad, thanks for posting!

#3
LogicKills

LogicKills

    Programmer

  • Members
  • PipPipPipPip
  • 139 posts
Yes sir.
I mean I know their are probably better ways to do this, but it gets the job done, and done simply.
http://logickills.org
Science - Math - Hacking - Tech

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
What are you clicking anyway?

#5
LogicKills

LogicKills

    Programmer

  • Members
  • PipPipPipPip
  • 139 posts
It double clicks on an icon to launch a game (WoW)
When the program launches
Clicks on username field
Enters my username
Clicks on password field
Enters password
Clicks connect
Selects my character

Then I can automate my job when I am in a raid. loll
http://logickills.org
Science - Math - Hacking - Tech

#6
outsid3r

outsid3r

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 623 posts

LogicKills said:

It double clicks on an icon to launch a game (WoW)
When the program launches
Clicks on username field
Enters my username
Clicks on password field
Enters password
Clicks connect
Selects my character

Then I can automate my job when I am in a raid. loll

I play wow too but not too much now, what you are doing it's really nice, but don't use it out of the raids, you can be reported, that thing is illegal :P

#7
outsid3r

outsid3r

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 623 posts

MeTh0Dz|Reb0rn said:

Dude, the odds of someone noticing that he is using it in the raids are complete ****.

I agree, you play wow too?

#8
outsid3r

outsid3r

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 623 posts

MeTh0Dz|Reb0rn said:

Used to.

Me too, i stoped to play about 3 months ago, but some days ago i bought the new expasion but i didn't play yet.

#9
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I don't believe there is anyway Blizzard could detect an "auto-clicker" program.

#10
outsid3r

outsid3r

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 623 posts

Jordan said:

I don't believe there is anyway Blizzard could detect an "auto-clicker" program.

Yes, but others can report him in pvp battlegrounds (if he try to make some clicker for bg's), in raids that's ok for sure.

#11
LogicKills

LogicKills

    Programmer

  • Members
  • PipPipPipPip
  • 139 posts
Ok update.. I have made pretty much a successful DPS bot for raids.
It uses the targets of other DPS's to lock on and attack.


Really nice actually.
I use it when I have to take a break.
http://logickills.org
Science - Math - Hacking - Tech

#12
OrhanC1

OrhanC1

    Newbie

  • Members
  • Pip
  • 3 posts
Just a heads up, auto clickers are easy to detect.