Luigi 38 Posted May 19, 2011 #comments-start Script's data: Name: Distributing buttons Date: 18 may 2.011 Script's author Name: Detefon e-mail: herbivoro@ig.com.br Inspired in the Fourier Series (wave saw tooth) If you want a way to distribute many buttons in the window's AutoIt, that simple algorithm will be calculate the 'x' and 'y' position's button. (0,0)(0,1)(0,2)(0,3)(0,4)(0,5)(0,6)(0,7) (1,0)(1,1)(1,2)(1,3)(1,4)(1,5)(1,6)(1,7) (2,0)(2,1)(2,2)(2,3)(2,4)(2,5)(2,6)(2,7) (3,0)(3,1)(3,2) #comments-end ;This script have 27 buttons ;Each line have only 8 buttons $Step = 8 for $a = 0 to 26 $x = int($a / $Step) $y = $a - $x * $Step ConsoleWrite("(" & $x & "," & $y & ")") NextDistributing Buttons.au3 Visit my repository Share this post Link to post Share on other sites
AlmarM 22 Posted May 19, 2011 #comments-start Script's data: Name: Distributing buttons Date: 18 may 2.011 Script's author Name: Detefon e-mail: herbivoro@ig.com.br Inspired in the Fourier Series (wave saw tooth) If you want a way to distribute many buttons in the window's AutoIt, that simple algorithm will be calculate the 'x' and 'y' position's button. (0,0)(0,1)(0,2)(0,3)(0,4)(0,5)(0,6)(0,7) (1,0)(1,1)(1,2)(1,3)(1,4)(1,5)(1,6)(1,7) (2,0)(2,1)(2,2)(2,3)(2,4)(2,5)(2,6)(2,7) (3,0)(3,1)(3,2) #comments-end ;This script have 27 buttons ;Each line have only 8 buttons $Step = 8 for $a = 0 to 26 $x = int($a / $Step) $y = $a - $x * $Step ConsoleWrite("(" & $x & "," & $y & ")") Next For $x = 0 To 8 ; buttons per row For $y = 0 To 4 ; buttons per column ConsoleWrite("(" & $x & "," & $y & ")" & @CRLF) Next Next MinesweeperA minesweeper game created in autoit, source available._Mouse_UDFAn UDF for registering functions to mouse events, made in pure autoit.2D Hitbox EditorA 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Share this post Link to post Share on other sites