Sign in to follow this  
Followers 0
focksie

Generating random Numbers for tooltip x and y coordinates

5 posts in this topic

I can generate random numbers...

I can create tool tips...

I can't get the tooltip to generate random numbers for the coordinates

ToolTip( "Riveting story", Random(0, 1680), Random(0, 1050), "Cool Story Bro")

what should I be doing?

Share this post


Link to post
Share on other sites



I came up with this, but this doesn't work either

Random( 0, 1680) = $var1
Random( 0, 1050) = $var2

ToolTip( "Cool Story Bro", $var1, $var2, "sTories by lul")

Share this post


Link to post
Share on other sites

Hey,

You should use the 3rd parameter of random to ensure you get a whole number.

ToolTip( "Riveting story", Random(0, 1680, 1), Random(0, 1050, 1), "Cool Story Bro")

GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF.

Share this post


Link to post
Share on other sites

Hey,

You should use the 3rd parameter of random to ensure you get a whole number.

ToolTip( "Riveting story", Random(0, 1680, 1), Random(0, 1050, 1), "Cool Story Bro")

okay thanks for the tip

Share this post


Link to post
Share on other sites

I came up with this, but this doesn't work either

Random( 0, 1680) = $var1
Random( 0, 1050) = $var2

ToolTip( "Cool Story Bro", $var1, $var2, "sTories by lul")

$var1 = Random( 0, 1680)
$var2 = Random( 0, 1050)
ToolTip( "Cool Story Bro", $var1, $var2, "sTories by lul")

Share this post


Link to post
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
Sign in to follow this  
Followers 0