focksie Posted July 28, 2010 Share Posted July 28, 2010 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? Link to comment Share on other sites More sharing options...
focksie Posted July 28, 2010 Author Share Posted July 28, 2010 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") Link to comment Share on other sites More sharing options...
Yoriz Posted July 28, 2010 Share Posted July 28, 2010 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. Link to comment Share on other sites More sharing options...
focksie Posted July 28, 2010 Author Share Posted July 28, 2010 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 Link to comment Share on other sites More sharing options...
jaberwacky Posted July 29, 2010 Share Posted July 29, 2010 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") Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now