Jump to content

tool tips


Recommended Posts

Hey guys (& gals),

Can I display the color of a pixel in a tool tip? Or is that reserved for message boxes? Like

$pixel = PixelSearch(1764, 1009, 1768, 1013, 0x6D1A1A, 20)

ToolTip("Color of $pixel is", 0, 0, $pixel[0], $pixel[1])

I know thats not the right format of tool tip but you get the idea. Problem I have had with message boxes is it brings the message box to the foreground. Tool tops have worked better for me, but maybe its just I haven't worked with message boxes enough. Thanks!

Link to comment
Share on other sites

Ok so if got my tooltips working, if i want to add multiple pixel colors at one time, can I? The help file says use @CR for carriage return but every time i put it in there it says error. This is my tooltip, but where do i put the @CR or what ever i use to make it multiple lines showing multiple colors?

$pixel = PixelGetColor( 1764 , 1011 )

ToolTip("This color is" & Hex($pixel,6), 0, 0)

Sleep(3000)

Like this:

$pixel = PixelGetColor( 1764 , 1011 )

$pixel2 = PixelGetColor( 1764 , 1011 )

ToolTip("This color is" & Hex($pixel,6) @CR "And this color is" & Hex($pixel2,6), 0, 0)

Sleep(3000)

gives me an error, any ideas?

Link to comment
Share on other sites

ToolTip("This color is" & Hex($pixel,6) & @CR & "And this color is" & Hex($pixel2,6), 0, 0)

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...