For example, black is 0, how can I find out what number other colors are?
msgbox(color.black.toargb.tostring)
me.backcolor = color.fromargb([COLOUR_HERE])
Code:msgbox(color.black.toargb.tostring)
then to use the 32bit colour, do;
Code:me.backcolor = color.fromargb([COLOUR_HERE])
I did a google search and followed this tutorial
http://www.youtube.com/watch?v=7lO0JMWwa2Q
I still don't know how to find the 32bit value of a color i put my mouse over =/
Dim hDC As IntPtr
hDC = GetWindowDC(0)
MsgBox(GetPixel(hDC, Cursor.Position.X, Cursor.Position.Y).ToString)
ReleaseDC(0, hDC)
Code:Dim hDC As IntPtr hDC = GetWindowDC(0) MsgBox(GetPixel(hDC, Cursor.Position.X, Cursor.Position.Y).ToString) ReleaseDC(0, hDC)
You will need to use the GetCursorPos API then you will need to use the GetPixel API, I'd do it for you but i don't have VS installed on this computer anymore, i could try coding it off the top of my head but it will be strung full of silly syntax errors and would only confuse you further.
What are you trying to do exactly, because i may have a working source i can just upload for ya to look at, learn from or use etc.
Well, what I am trying to do is load a flash game in the webbrowser.
Then I want it so that when I press button1 for example, it would look for a certain color, in a certain spot, then click it, then when it is done, it would continue to look for a another color, in another certain spot, and then click it and so on.
Link me to the game and i'll have a look, i'm pretty bored right now so i might convert some vb6 code over and make half the project for you.