| View previous topic :: View next topic |
| Author |
Message |
PhantomLancer Master Cheater
Reputation: 0
Joined: 11 Nov 2007 Posts: 356
|
Posted: Mon May 19, 2008 10:53 pm Post subject: VB 2008 Code For Auto Click |
|
|
Can someone help me with a code for Vb 2008 that auto clicks on based on coordinates ?
Like uhm
if use has coordinate
X=7px
y=2px
Pretend the image below is a monitor and the dots represent pixels
______________
|....................|
|....................|
|....................|
|....................|
-------------------
The cyan dot represents where to mouse will click if i type in the coordinates into my text box
can someone help me with a code for this?
And a code that tells the mouse coordinates in a label beside the text box?
_________________
|
|
| Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Mon May 19, 2008 11:03 pm Post subject: |
|
|
I'm sure there is code all over the internet.
There is probably some all over CEF.
Just use the search....
|
|
| Back to top |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
|
| Back to top |
|
 |
PhantomLancer Master Cheater
Reputation: 0
Joined: 11 Nov 2007 Posts: 356
|
Posted: Mon May 19, 2008 11:25 pm Post subject: |
|
|
thanks guys, Moller thanks for link.
Now how do i make it to when i click a link it brings it up in a web browser.
_________________
|
|
| Back to top |
|
 |
NothingToShow Grandmaster Cheater Supreme
Reputation: 0
Joined: 11 Jul 2007 Posts: 1579
|
Posted: Mon May 19, 2008 11:39 pm Post subject: |
|
|
| PhantomLancer wrote: | thanks guys, Moller thanks for link.
Now how do i make it to when i click a link it brings it up in a web browser. |
Depends on where you've got the link.
If it's already in a webbrowser, it should open by itself, since it simulates a normal click.
|
|
| Back to top |
|
 |
PhantomLancer Master Cheater
Reputation: 0
Joined: 11 Nov 2007 Posts: 356
|
Posted: Tue May 20, 2008 12:51 am Post subject: |
|
|
| Moller wrote: | | PhantomLancer wrote: | thanks guys, Moller thanks for link.
Now how do i make it to when i click a link it brings it up in a web browser. |
Depends on where you've got the link.
If it's already in a webbrowser, it should open by itself, since it simulates a normal click. |
i figured it out
i used the | Code: | | WebBrowser1.Navigate("www.url.com") | For it
but the auto click thing is confusing me XP like say i have button 8. when i clikc button 8 i want ti click on a certain spot in the form, how would i tell it to click on that spot? and make it click on other spots when a thing in the game pops up?
_________________
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Tue May 20, 2008 5:24 am Post subject: |
|
|
Calculate the position of the mouse when you click the button and then calculate the new coords. Say the button is at 500, 600 on the SCREEN and the link is at 400,500. You would take
point.x = point.x - 100
point.y = point.y - 100
Idk the code for this in VB but that would be C. This way, even if the form is moved, the calculations will cope.
GetCursorPos , documentation on MSDN, will get the on screen coords. You pass a point pointer to this function which has the members x and y. This of course is the win32 way of doing things but VB prolly has some gay slower alternative.
_________________
|
|
| Back to top |
|
 |
PhantomLancer Master Cheater
Reputation: 0
Joined: 11 Nov 2007 Posts: 356
|
Posted: Tue May 20, 2008 1:38 pm Post subject: |
|
|
| blankrider wrote: | Calculate the position of the mouse when you click the button and then calculate the new coords. Say the button is at 500, 600 on the SCREEN and the link is at 400,500. You would take
point.x = point.x - 100
point.y = point.y - 100
Idk the code for this in VB but that would be C. This way, even if the form is moved, the calculations will cope.
GetCursorPos , documentation on MSDN, will get the on screen coords. You pass a point pointer to this function which has the members x and y. This of course is the win32 way of doing things but VB prolly has some gay slower alternative. |
ok but how do i find the position?
and if it isnt much to ask how can i make it click one place 3 times, then another place 1 time, and wait 10 secs, then repeat?
_________________
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Tue May 20, 2008 1:49 pm Post subject: |
|
|
Do you read? GetCursorPos
And what are you trying to do? Because if you are trying to make it autoclick to run a function IN YOUR PROGRAM you can do the same thing by sending a message or calling the function....
_________________
|
|
| Back to top |
|
 |
PhantomLancer Master Cheater
Reputation: 0
Joined: 11 Nov 2007 Posts: 356
|
Posted: Tue May 20, 2008 1:56 pm Post subject: |
|
|
| blankrider wrote: | Do you read? GetCursorPos
And what are you trying to do? Because if you are trying to make it autoclick to run a function IN YOUR PROGRAM you can do the same thing by sending a message or calling the function.... |
oh right sorry i was just looking over the message thanks for the tip
and i think thats what im trying to say, im trying to get it to click 3 times on play token, then when it click on that 3 times it clicks spin, then waits for it to stop spinning and repeats, i dont know if its a function or not, but if it is then i guess il try calling the function
_________________
|
|
| Back to top |
|
 |
bheesham Advanced Cheater
Reputation: 0
Joined: 08 Nov 2006 Posts: 88 Location: ::1
|
|
| Back to top |
|
 |
|