Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Is it possible to make the mouse move into a certain part of the screen and make it click in vb.net? I'm playing a game called Penguin swing/penguin smack at http://www.ebaumsworld.com/penguinswing.html. It's all about timing so i'm trying to see at what millisecond I should make the mouse click. Is it possible to even make the mouse click at a certain part of the screen in vb.net or c#? thanks...
Posted (edited)

I have a frame of internet explorer that points to the game (it's a flash game) I'm trying to get it, so that the mouse clicks at the exact time to make it go farthest (this will be experimented by editing the timer interval on a timer) For example the code might look something like this only it will work, and not be plain english...

 

Private Sub Button1_click(ByVal...., ....)Handles button1.click
     Mouse.left.click(x,y) 'area that the yeti is located on the game
     Timer1.start
End Sub
Private Sub Timer1_Tick(etc...) Handles Timer1.click
     Mouse.left.click(x,y) 'area of yeti
     Timer1.stop
End Sub

It will be something like, but i don't think it's possible in vb to make the mouse click in a certain area...

 

By the way the url is http://www.ebaumsworld.com/penguinswing.html without the "." at the end....

 

I do not think it is possible this way though, how would you do it in using api?

Edited by decrypt
Posted (edited)
I got 319.9.. anyway I think u r able to do it pretty easily... find the mouse click event handler... there should be a win API for it.... just try seaching google API mouse click or something Edited by DR00ME

"Everything should be made as simple as possible, but not simpler."

"It's not that I'm so smart , it's just that I stay with problems longer ."

- Albert Einstein

  • 2 months later...
Posted

Private Sub Command2_MouseMove(Button As Integer, Shift As _
   Integer, x As Single, y As Single)
   SetCursorPos Cx, Cy
End Sub

 

does anyone know how i can do that in vb.net?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...