Diablicolic Posted August 3, 2003 Posted August 3, 2003 In VB.NET how would I move the mouse and click the mouse where I wanted to? Quote "Reality is fake, Dreams are for real"
ballisticnylon Posted August 3, 2003 Posted August 3, 2003 I've read some oblique questions before, but you win. Quote "It may be roundly asserted that human ingenuity cannot concoct a cipher which human ingenuity cannot resolve." - Edgar Allan Poe, 1841 I long to accomplish great and noble tasks, but it is my chief duty to accomplish humble tasks as though they were great and noble. The world is moved along, not only by the mighty shoves of its heroes, but also by the aggregate of the tiny pushes of each honest worker. - Helen Keller
Leaders dynamic_sysop Posted August 3, 2003 Leaders Posted August 3, 2003 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Cursor.Position = New Point(300, 90) '/// put the location you want to move the mouse to , in the Point co-ordinates. End Sub or .... move yer right arm, grab the mouse and slide it along the mat ;) ( jk ):cool: Quote
Leaders dynamic_sysop Posted August 3, 2003 Leaders Posted August 3, 2003 oops i forgot , you want to click it also , here ya go ... Private Declare Sub mouse_event Lib "user32.dll" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer) Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim x As Integer = CInt(&H2) Or CInt(&H4) Cursor.Position = New Point(300, 90) '/// put the location you want to move the mouse to , in the Point co-ordinates. mouse_event(x, Cursor.Position.X, Cursor.Position.Y, 0, 0) End Sub Quote
Diablicolic Posted August 3, 2003 Author Posted August 3, 2003 lol vveeerrry funny you guys, make fun of the new guy :p But what I wanted to do in more detail was this: There is a button on the form, button1. Now what I want to happen is when someone hits button1, I want the mouse pointer FORCED to move to the bottom left side part of the screen, and then FORCED to left click there. -------------------------------------Edit------------------------------------- Or wait you just said that....my bad lol. I can't read today :-\ Thank you! I'm going to try it out! Quote "Reality is fake, Dreams are for real"
Diablicolic Posted August 3, 2003 Author Posted August 3, 2003 OMG AAAHH!!!! dynamic_sysop You are the man!! I finally have figured OUT how the HECK that guy that told me to download this program that dropped all of my items in Diablo II did! I got that guy good ! aahhahahaa....yeah....Hey and now I can create a RUN bot! Cool, a bot in Diablo II that can do all of the work for me lol. Oh this opens a huge portal *sigh*. Life is just too good :rolleyes: Quote "Reality is fake, Dreams are for real"
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.