• Log in or sign up for an account here: https://www.sythe.org/login

Thread Options How can I find the 32 bit number of a color?

Code:
msgbox(color.black.toargb.tostring)

then to use the 32bit colour, do;
Code:
me.backcolor = color.fromargb([COLOUR_HERE])

Why am I so goddamn retarded. I don't know what to do. I just want there to be a msgbox saying what number a color my mouse is on =/
 
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 =/

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.
 
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.
 
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.
 
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.

Thank you so much to be willing to do that, but I don't want to bother you =P
 
duelarena.gg
Back
Top