Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VB 2008 Code For Auto Click

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
PhantomLancer
Master Cheater
Reputation: 0

Joined: 11 Nov 2007
Posts: 356

PostPosted: Mon May 19, 2008 10:53 pm    Post subject: VB 2008 Code For Auto Click Reply with quote

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
View user's profile Send private message
Overload
Master Cheater
Reputation: 0

Joined: 08 Feb 2008
Posts: 293

PostPosted: Mon May 19, 2008 11:03 pm    Post subject: Reply with quote

I'm sure there is code all over the internet.
There is probably some all over CEF.

Just use the search....
Back to top
View user's profile Send private message MSN Messenger
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Mon May 19, 2008 11:24 pm    Post subject: Reply with quote

Take a look at
http://forums.microsoft.com/MSDN/ShowPost.aspx?PageIndex=0&SiteID=1&PageID=0&PostID=3286906
Back to top
View user's profile Send private message
PhantomLancer
Master Cheater
Reputation: 0

Joined: 11 Nov 2007
Posts: 356

PostPosted: Mon May 19, 2008 11:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Mon May 19, 2008 11:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
PhantomLancer
Master Cheater
Reputation: 0

Joined: 11 Nov 2007
Posts: 356

PostPosted: Tue May 20, 2008 12:51 am    Post subject: Reply with quote

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
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue May 20, 2008 5:24 am    Post subject: Reply with quote

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
View user's profile Send private message
PhantomLancer
Master Cheater
Reputation: 0

Joined: 11 Nov 2007
Posts: 356

PostPosted: Tue May 20, 2008 1:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Tue May 20, 2008 1:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
PhantomLancer
Master Cheater
Reputation: 0

Joined: 11 Nov 2007
Posts: 356

PostPosted: Tue May 20, 2008 1:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
bheesham
Advanced Cheater
Reputation: 0

Joined: 08 Nov 2006
Posts: 88
Location: ::1

PostPosted: Tue May 20, 2008 7:18 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=178609
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites