decrypt Posted February 12, 2004 Posted February 12, 2004 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... Quote
Procaine Posted February 13, 2004 Posted February 13, 2004 I think you need to look along the lines of sending API to the browser window to simulate mouse-moving/clicking. Quote
decrypt Posted February 21, 2004 Author Posted February 21, 2004 Do you know of a tutorial on how to use api? Quote
samsmithnz Posted February 21, 2004 Posted February 21, 2004 what exactly are you trying to do? (there may be an easier way) Quote Thanks Sam http://www.samsmith.co.nz
decrypt Posted February 22, 2004 Author Posted February 22, 2004 (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 February 22, 2004 by decrypt Quote
DR00ME Posted February 23, 2004 Posted February 23, 2004 (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 February 23, 2004 by DR00ME Quote "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
decrypt Posted April 27, 2004 Author Posted April 27, 2004 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? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.