Search results for query: *

  1. W

    Creating a mouse click

    Well, Ive managed to get hold of this for creating a left click Private Declare Function SetCursorPos Lib "user32" (ByVal x As Integer, ByVal y As Integer) As Integer Private Declare Function GetCursorPos Lib "user32" (ByRef lpPoint As POINTAPI) As Integer Private Declare Sub mouse_event Lib...
  2. W

    Creating a mouse click

    I dont want to have to click it myself, I want to automate it. I need to be able to navigate an external application through mouse clicks. Like send the cursor to a button and then click it, but automatically.
  3. W

    Screen Recognition -> finding out what colour something is

    Perhaps, but like I said, it does work flawlessly! Ive changed the try/catch to the right exception and it really does work just as I need it to! (I couldn't get the w.gethue to work properly, it missed out some yellows and i tried some different ranges). For this particular problem it seems...
  4. W

    Creating a mouse click

    I think this is the right place.. Anway, Im using this to move the mouse cursor to a specific location: Windows.Forms.Cursor.Position = New System.Drawing.Point(x, y) How can I create a click using the above? (Left click). I have done some looking around forms.cursors and such but I can't...
  5. W

    Screen Recognition -> finding out what colour something is

    That is actually a really good idea! After my last post I scrapped the for loops and used this: TextBox1.Text = w.ToString Try TextBox1.Select(16, 3) pixelResults(1) = TextBox1.SelectedText TextBox1.Select(23, 3) pixelResults(2) = TextBox1.SelectedText Catch label1.Text = "Number is NOT...
  6. W

    Screen Recognition -> finding out what colour something is

    Ah thank you very much for that peice of code, very useful! Ive been doing some playing around and have found out that the yellow isn't actually pure yellow. Each pixel is randomly one of every shade of yellow that is possible as far as Im aware. Ive been converting the results of the...
  7. W

    Screen Recognition -> finding out what colour something is

    Hmm ok thanks. Basically there are going to be 6 numbers continuously scrolling at random from a range of about 7 to 20-ish. They are all red but when they reach a specific number they will turn yellow. I want to know when they turn yellow. Can I set up something that says when pixel X...
  8. W

    Screen Recognition -> finding out what colour something is

    What I want to know is: is it possible to detect things on the screen with VB.NET? If so, how!? (I dont imagine it will be easy but anything useful would be good) I want to be able to find out what colour a number on screen is (well a range of numbers) and perform an action when a certain...
Back
Top