AlmarM Posted September 25, 2007 Share Posted September 25, 2007 (edited) I made this little game Sourceexpandcollapse popup#include <GuiConstants.au3> #include <Constants.au3> Global $dif HotKeySet("{F4}", "HighScores") $Main = GUICreate("How fast are u ?", 370, 540) ; Given this GUI a name GUISetState(@SW_SHOW) $Start_Button = GUICtrlCreateButton("Start", 10, 10, 50, 50) GUICtrlSetState($Start_Button, $GUI_ENABLE) $Stop_Button = GUICtrlCreateButton("Stop", 310, 310, 50, 50) GUICtrlSetState($Stop_Button, $GUI_DISABLE) $Button_1 = GUICtrlCreateButton("Click", 70, 10, 50, 50) GUICtrlSetState($Button_1, $GUI_DISABLE) $Button_2 = GUICtrlCreateButton("Click", 130, 10, 50, 50) GUICtrlSetState($Button_2, $GUI_DISABLE) $Button_3 = GUICtrlCreateButton("Click", 190, 10, 50, 50) GUICtrlSetState($Button_3, $GUI_DISABLE) $Button_4 = GUICtrlCreateButton("Click", 250, 10, 50, 50) GUICtrlSetState($Button_4, $GUI_DISABLE) $Button_5 = GUICtrlCreateButton("Click", 310, 10, 50, 50) GUICtrlSetState($Button_5, $GUI_DISABLE) $Button_6 = GUICtrlCreateButton("Click", 10, 70, 50, 50) GUICtrlSetState($Button_6, $GUI_DISABLE) $Button_7 = GUICtrlCreateButton("Click", 70, 70, 50, 50) GUICtrlSetState($Button_7, $GUI_DISABLE) $Button_8 = GUICtrlCreateButton("Click", 130, 70, 50, 50) GUICtrlSetState($Button_8, $GUI_DISABLE) $Button_9 = GUICtrlCreateButton("Click", 190, 70, 50, 50) GUICtrlSetState($Button_9, $GUI_DISABLE) $Button_10 = GUICtrlCreateButton("Click", 250, 70, 50, 50) GUICtrlSetState($Button_10, $GUI_DISABLE) $Button_11 = GUICtrlCreateButton("Click", 310, 70, 50, 50) GUICtrlSetState($Button_11, $GUI_DISABLE) $Button_12 = GUICtrlCreateButton("Click", 10, 130, 50, 50) GUICtrlSetState($Button_12, $GUI_DISABLE) $Button_13 = GUICtrlCreateButton("Click", 70, 130, 50, 50) GUICtrlSetState($Button_13, $GUI_DISABLE) $Button_14 = GUICtrlCreateButton("Click", 130, 130, 50, 50) GUICtrlSetState($Button_14, $GUI_DISABLE) $Button_15 = GUICtrlCreateButton("Click", 190, 130, 50, 50) GUICtrlSetState($Button_15, $GUI_DISABLE) $Button_16 = GUICtrlCreateButton("Click", 250, 130, 50, 50) GUICtrlSetState($Button_16, $GUI_DISABLE) $Button_17 = GUICtrlCreateButton("Click", 310, 130, 50, 50) GUICtrlSetState($Button_17, $GUI_DISABLE) $Button_18 = GUICtrlCreateButton("Click", 10, 190, 50, 50) GUICtrlSetState($Button_18, $GUI_DISABLE) $Button_19 = GUICtrlCreateButton("Click", 70, 190, 50, 50) GUICtrlSetState($Button_19, $GUI_DISABLE) $Button_20 = GUICtrlCreateButton("Click", 130, 190, 50, 50) GUICtrlSetState($Button_20, $GUI_DISABLE) $Button_21 = GUICtrlCreateButton("Click", 190, 190, 50, 50) GUICtrlSetState($Button_21, $GUI_DISABLE) $Button_22 = GUICtrlCreateButton("Click", 250, 190, 50, 50) GUICtrlSetState($Button_22, $GUI_DISABLE) $Button_23 = GUICtrlCreateButton("Click", 310, 190, 50, 50) GUICtrlSetState($Button_23, $GUI_DISABLE) $Button_24 = GUICtrlCreateButton("Click", 10, 250, 50, 50) GUICtrlSetState($Button_24, $GUI_DISABLE) $Button_25 = GUICtrlCreateButton("Click", 70, 250, 50, 50) GUICtrlSetState($Button_25, $GUI_DISABLE) $Button_26 = GUICtrlCreateButton("Click", 130, 250, 50, 50) GUICtrlSetState($Button_26, $GUI_DISABLE) $Button_27 = GUICtrlCreateButton("Click", 190, 250, 50, 50) GUICtrlSetState($Button_27, $GUI_DISABLE) $Button_28 = GUICtrlCreateButton("Click", 250, 250, 50, 50) GUICtrlSetState($Button_28, $GUI_DISABLE) $Button_29 = GUICtrlCreateButton("Click", 310, 250, 50, 50) GUICtrlSetState($Button_29, $GUI_DISABLE) $Button_30 = GUICtrlCreateButton("Click", 10, 310, 50, 50) GUICtrlSetState($Button_30, $GUI_DISABLE) $Button_31 = GUICtrlCreateButton("Click", 70, 310, 50, 50) GUICtrlSetState($Button_31, $GUI_DISABLE) $Button_32 = GUICtrlCreateButton("Click", 130, 310, 50, 50) GUICtrlSetState($Button_32, $GUI_DISABLE) $Button_33 = GUICtrlCreateButton("Click", 190, 310, 50, 50) GUICtrlSetState($Button_33, $GUI_DISABLE) $Button_34 = GUICtrlCreateButton("Click", 250, 310, 50, 50) GUICtrlSetState($Button_34, $GUI_DISABLE) $Quick_HighScore = GUICtrlCreateEdit("Quick Highscore view" & @CRLF & @CRLF, 10, 370, 350, 120) $Restart_Button = GUICtrlCreateButton("Restart", 40, 500, 80, 30) $HighScores = GUICtrlCreateButton("High Scores", 140, 500, 80, 30) $About = GUICtrlCreateButton("About", 240, 500, 80, 30) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $Start_Button $begin = TimerInit() GUICtrlSetState($Button_28, $GUI_ENABLE) GUICtrlSetState($Start_Button, $GUI_DISABLE) Beep(500, 100) Case $msg = $Button_28 GUICtrlSetState($Button_3, $GUI_ENABLE) GUICtrlSetState($Button_28, $GUI_DISABLE) Case $msg = $Button_3 GUICtrlSetState($Button_30, $GUI_ENABLE) GUICtrlSetState($Button_3, $GUI_DISABLE) Case $msg = $Button_30 GUICtrlSetState($Button_15, $GUI_ENABLE) GUICtrlSetState($Button_30, $GUI_DISABLE) Case $msg = $Button_15 GUICtrlSetState($Button_7, $GUI_ENABLE) GUICtrlSetState($Button_15, $GUI_DISABLE) Case $msg = $Button_7 GUICtrlSetState($Button_29, $GUI_ENABLE) GUICtrlSetState($Button_7, $GUI_DISABLE) Case $msg = $Button_29 GUICtrlSetState($Button_13, $GUI_ENABLE) GUICtrlSetState($Button_29, $GUI_DISABLE) Case $msg = $Button_13 GUICtrlSetState($Button_5, $GUI_ENABLE) GUICtrlSetState($Button_13, $GUI_DISABLE) Case $msg = $Button_5 GUICtrlSetState($Button_14, $GUI_ENABLE) GUICtrlSetState($Button_5, $GUI_DISABLE) Case $msg = $Button_14 GUICtrlSetState($Button_34, $GUI_ENABLE) GUICtrlSetState($Button_14, $GUI_DISABLE) Case $msg = $Button_34 GUICtrlSetState($Button_8, $GUI_ENABLE) GUICtrlSetState($Button_34, $GUI_DISABLE) Case $msg = $Button_8 GUICtrlSetState($Button_32, $GUI_ENABLE) GUICtrlSetState($Button_8, $GUI_DISABLE) Case $msg = $Button_32 GUICtrlSetState($Button_16, $GUI_ENABLE) GUICtrlSetState($Button_32, $GUI_DISABLE) Case $msg = $Button_16 GUICtrlSetState($Button_18, $GUI_ENABLE) GUICtrlSetState($Button_16, $GUI_DISABLE) Case $msg = $Button_18 GUICtrlSetState($Button_21, $GUI_ENABLE) GUICtrlSetState($Button_18, $GUI_DISABLE) Case $msg = $Button_21 GUICtrlSetState($Button_1, $GUI_ENABLE) GUICtrlSetState($Button_21, $GUI_DISABLE) Case $msg = $Button_1 GUICtrlSetState($Button_33, $GUI_ENABLE) GUICtrlSetState($Button_1, $GUI_DISABLE) Case $msg = $Button_33 GUICtrlSetState($Button_20, $GUI_ENABLE) GUICtrlSetState($Button_33, $GUI_DISABLE) Case $msg = $Button_20 GUICtrlSetState($Button_11, $GUI_ENABLE) GUICtrlSetState($Button_20, $GUI_DISABLE) Case $msg = $Button_11 GUICtrlSetState($Button_19, $GUI_ENABLE) GUICtrlSetState($Button_11, $GUI_DISABLE) Case $msg = $Button_19 GUICtrlSetState($Button_4, $GUI_ENABLE) GUICtrlSetState($Button_19, $GUI_DISABLE) Case $msg = $Button_4 GUICtrlSetState($Button_22, $GUI_ENABLE) GUICtrlSetState($Button_4, $GUI_DISABLE) Case $msg = $Button_22 GUICtrlSetState($Button_2, $GUI_ENABLE) GUICtrlSetState($Button_22, $GUI_DISABLE) Case $msg = $Button_2 GUICtrlSetState($Button_25, $GUI_ENABLE) GUICtrlSetState($Button_2, $GUI_DISABLE) Case $msg = $Button_25 GUICtrlSetState($Button_10, $GUI_ENABLE) GUICtrlSetState($Button_25, $GUI_DISABLE) Case $msg = $Button_10 GUICtrlSetState($Button_6, $GUI_ENABLE) GUICtrlSetState($Button_10, $GUI_DISABLE) Case $msg = $Button_6 GUICtrlSetState($Button_23, $GUI_ENABLE) GUICtrlSetState($Button_6, $GUI_DISABLE) Case $msg = $Button_23 GUICtrlSetState($Button_31, $GUI_ENABLE) GUICtrlSetState($Button_23, $GUI_DISABLE) Case $msg = $Button_31 GUICtrlSetState($Button_9, $GUI_ENABLE) GUICtrlSetState($Button_31, $GUI_DISABLE) Case $msg = $Button_9 GUICtrlSetState($Button_17, $GUI_ENABLE) GUICtrlSetState($Button_9, $GUI_DISABLE) Case $msg = $Button_17 GUICtrlSetState($Button_12, $GUI_ENABLE) GUICtrlSetState($Button_17, $GUI_DISABLE) Case $msg = $Button_12 GUICtrlSetState($Button_27, $GUI_ENABLE) GUICtrlSetState($Button_12, $GUI_DISABLE) Case $msg = $Button_27 GUICtrlSetState($Button_24, $GUI_ENABLE) GUICtrlSetState($Button_27, $GUI_DISABLE) Case $msg = $Button_24 GUICtrlSetState($Button_26, $GUI_ENABLE) GUICtrlSetState($Button_24, $GUI_DISABLE) Case $msg = $Button_26 GUICtrlSetState($Stop_Button, $GUI_ENABLE) GUICtrlSetState($Button_26, $GUI_DISABLE) Case $msg = $Stop_Button Beep(500, 100) $dif = Round(TimerDiff($begin) / 1000, 1) MsgBox(0, "Your Time: ", "Your time is: " & $dif & " seconds. ") GUICtrlSetData($Quick_HighScore, $dif & " Seconds" & @CRLF, "|") ;Asks the user if they want to save their score If Not IsDeclared("iMsgBoxAnswer") Then Local $iMsgBoxAnswer $iMsgBoxAnswer = MsgBox(36, "Save", "Would you like to save your score?") Select Case $iMsgBoxAnswer = 6 ;Yes Save() ; Goes to the save function Case $iMsgBoxAnswer = 7 ;No ;nothing EndSelect Case $msg = $Restart_Button _Reset() Case $msg = $HighScores HighScores() Case $msg = $About About() EndSelect WEnd Func _Reset() Sleep(100) MsgBox(0, "Restart", "Restarting" & @CRLF & "Please wait...", 2) GUICtrlSetState($Button_1, $GUI_DISABLE) GUICtrlSetState($Button_2, $GUI_DISABLE) GUICtrlSetState($Button_3, $GUI_DISABLE) GUICtrlSetState($Button_4, $GUI_DISABLE) GUICtrlSetState($Button_5, $GUI_DISABLE) GUICtrlSetState($Button_6, $GUI_DISABLE) GUICtrlSetState($Button_7, $GUI_DISABLE) GUICtrlSetState($Button_8, $GUI_DISABLE) GUICtrlSetState($Button_9, $GUI_DISABLE) GUICtrlSetState($Button_10, $GUI_DISABLE) GUICtrlSetState($Button_11, $GUI_DISABLE) GUICtrlSetState($Button_12, $GUI_DISABLE) GUICtrlSetState($Button_13, $GUI_DISABLE) GUICtrlSetState($Button_14, $GUI_DISABLE) GUICtrlSetState($Button_15, $GUI_DISABLE) GUICtrlSetState($Button_16, $GUI_DISABLE) GUICtrlSetState($Button_17, $GUI_DISABLE) GUICtrlSetState($Button_18, $GUI_DISABLE) GUICtrlSetState($Button_19, $GUI_DISABLE) GUICtrlSetState($Button_20, $GUI_DISABLE) GUICtrlSetState($Button_21, $GUI_DISABLE) GUICtrlSetState($Button_22, $GUI_DISABLE) GUICtrlSetState($Button_23, $GUI_DISABLE) GUICtrlSetState($Button_24, $GUI_DISABLE) GUICtrlSetState($Button_25, $GUI_DISABLE) GUICtrlSetState($Button_26, $GUI_DISABLE) GUICtrlSetState($Button_27, $GUI_DISABLE) GUICtrlSetState($Button_28, $GUI_DISABLE) GUICtrlSetState($Button_29, $GUI_DISABLE) GUICtrlSetState($Button_30, $GUI_DISABLE) GUICtrlSetState($Button_31, $GUI_DISABLE) GUICtrlSetState($Button_32, $GUI_DISABLE) GUICtrlSetState($Button_33, $GUI_DISABLE) GUICtrlSetState($Button_34, $GUI_DISABLE) GUICtrlSetState($Stop_Button, $GUI_DISABLE) GUICtrlSetState($Start_Button, $GUI_ENABLE) Sleep(100) EndFunc ;==>_Reset Func Save() FileWrite(@ScriptDir & "\Scores.txt", $dif & " Seconds" & @CRLF) MsgBox(64, "Saved", "Your high score has been saved!") ; Tells you it is saved HighScores() ; Opens the high scores window EndFunc ;==>Save Func HighScores() $Scores = FileRead(@ScriptDir & "\Scores.txt") ; Reads the scores from the txt file If @error Then MsgBox(0, "", "Error occurred, you probably haven't saved any scores yet.") Else GUISetState(@SW_HIDE, $Main) $HSW = GUICreate("High Scores", 241, 237) $HS = GUICtrlCreateEdit("Scores:"& @CRLF & $Scores, 10, 10, 221, 217, BitOR($ES_READONLY, $ES_WANTRETURN)) GUISetState(@SW_SHOW) While 3 $msg3 = GUIGetMsg() Select Case $msg3 = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete($HSW) GUISetState(@SW_SHOW, $Main) EndIf EndFunc ;==>HighScores Func About() GUISetState(@SW_HIDE, $Main) $AboutWindow = GUICreate("About", 250, 200) $ProgramName = GUICtrlCreateLabel("How fast are u?", 85, 26) $ProgramDescription = GUICtrlCreateEdit("Credits:" & @CRLF & @CRLF & "Scripter: AlmarM" & @CRLF & "Game by: AlmarM" & @CRLF & "Some things edited by: alien13", 20, 60, 210, 126, BitOR($ES_READONLY, $ES_WANTRETURN)) GUISetState(@SW_SHOW) While 2 $msg2 = GUIGetMsg() Select Case $msg2 = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd GUIDelete($AboutWindow) GUISetState(@SW_SHOW, $Main) EndFuncHope you wil enjoy My fastest time = 19.5EDIT: Fastest time 19.2To do list:Adding reset button or HotKeySet() *Done*Add more buttons? (U guys may choose )*Too much work *Add a preview highscore (Not Online highscrore ) *Done*Add a beep when pressed Start and Stop Button *Done*Making a better highscore with more as 1 "Try" *Done*Making a save button to save your best times*Done*Add more stuff*Done*Added lastest update*Done*EDITEDIT1: Added Restart HotKeySet()*For Ever**Changed*EDIT2: Updated To Do List*For Ever*EDIT3: Added Beep*For Ever*EDIT4: Added little highscore (BAD)*Will be Changed**Changed*EDIT5: Updated To Do List*For Ever*EDIT6: Added/Changed Highscore*For Ever*EDIT7: Updated To Do List*For Ever*EDIT8: Added EDITED script*Who know if it will change**Changed*EDIT9: Updated To Do List*For Ever*EDIT10: Added EDITED(2) script*Changed?**Changed*For everyone the credits CreditsScripter: AlmarMGame by: AlmarMSome things edited by: alien3Highscore Top 31st: JRSmile with 16.8 seconds2nd: qwer85 with 18.6 seconds3rd: AlmarM with 19.2 seconds Edited September 30, 2007 by AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
BrettF Posted September 25, 2007 Share Posted September 25, 2007 Good job It looks great. First try 25 seconds. Best well. was 25 seconds... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
AlmarM Posted September 25, 2007 Author Share Posted September 25, 2007 I need to say something 1st try: 22.5 2nd try: 21.7 3rd try: 19.5 and Ty ^^ I need to add something ? Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
AlmarM Posted September 25, 2007 Author Share Posted September 25, 2007 Someone have some ideas for the Highscore thing ??? And please say what you think of my Script I only had just 1 Reply Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
AlmarM Posted September 25, 2007 Author Share Posted September 25, 2007 Realy no1 knows something about the Highscore idea I had ?? Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Xand3r Posted September 25, 2007 Share Posted September 25, 2007 here's a litle cheat WinWaitActive("How fast are u ?") $pos=WinGetPos("How fast are u ?") HotKeySet("{ESC}" , "quit") While 1 $x=PixelSearch($pos[0]+10,$pos[1]+10,$pos[0]+$pos[2]-20,$pos[1]+$pos[3]-20,0x000000,3) If WinActivate("How fast are u ?") Then MouseClick("left" , $x[0],$x[1],1,0) WEnd Func quit() Exit EndFunc btw 10 secs anyway nice litle game Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro Link to comment Share on other sites More sharing options...
AlmarM Posted September 25, 2007 Author Share Posted September 25, 2007 Grrrr Nice Cheat but its for you not for your your little cheats ^^ Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
AlmarM Posted September 26, 2007 Author Share Posted September 26, 2007 Heya, some people already tested there reflexes ?? Im gonne make a save button to save your best times ^^ (All times ) And ah... Dont do it with the "Little Cheat" from alexmadman that borng Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 26, 2007 Moderators Share Posted September 26, 2007 And ah... Dont do it with the "Little Cheat" from alexmadman that borng Then mine would be even more boring.... 0.9 seconds ... Nice effort here AlmarM. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
AlmarM Posted September 27, 2007 Author Share Posted September 27, 2007 Then mine would be even more boring.... 0.9 seconds ... Nice effort here AlmarM.Ty and what you mean with "0.9 seconds"... You eddited the script ?? Or... What you did ? Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
jvanegmond Posted September 27, 2007 Share Posted September 27, 2007 (edited) First try on a laptop's touchpad was 35 seconds.. The second try using a normal mouse was 25 seconds.. The third try using a normal mouse was 21 seconds.. Nice game, but just make a "Restart" button in stead of a hotkey.. I had my hotkey on {ENTER} and I couldn't type properly. Edited September 27, 2007 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
AlmarM Posted September 27, 2007 Author Share Posted September 27, 2007 First try on a laptop's touchpad was 35 seconds.. The second try using a normal mouse was 25 seconds.. The third try using a normal mouse was 21 seconds.. Nice game, but just make a "Restart" button in stead of a hotkey.. I had my hotkey on {ENTER} and I couldn't type properly. K il will do as soon im home (Im at school now ^^) So i will make: $Restart_Button = GuiCtrlCreateButton("Restart", , , ,) Select Case $msg = $Restart_Button MsgBox(0, "Restart", "Restarting" & @CRLF & "Please Wait", 2) etc I dont know if its right (Cant test because I dont have SciTE at school here) And I need to say the teachers dont know im on the AutoIT site right now so ^^ Will EDIT soon ^^ Have Fun Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
alien13 Posted September 27, 2007 Share Posted September 27, 2007 Cool. Really Simple, yet it is a great little game! My best is 19.5.. hard to beat it :S I made a couple of adjustments to it (hope you don't mind) here is my edited script if you want to have a look. I basically added a restart button instead of the hotkey. And made it so it saves the scores to an .ini file (I can't get it to read them back properly though - I was hoping to get it to list all the scores in the other GUI but it was being stupid --- Every time you save your score though, it will show it in the high scores window) Game.au3 Link to comment Share on other sites More sharing options...
AlmarM Posted September 27, 2007 Author Share Posted September 27, 2007 Cool. Really Simple, yet it is a great little game! My best is 19.5.. hard to beat it :SI made a couple of adjustments to it (hope you don't mind) here is my edited script if you want to have a look. I basically added a restart button instead of the hotkey. And made it so it saves the scores to an .ini file (I can't get it to read them back properly though - I was hoping to get it to list all the scores in the other GUI but it was being stupid --- Every time you save your score though, it will show it in the high scores window)Dude... You made it exactly how I wanted to make it But I can make credtis with your name in it ^^ Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
qwer85 Posted September 27, 2007 Share Posted September 27, 2007 Nice game Personal result after 3 tries 18.6 sec Link to comment Share on other sites More sharing options...
AlmarM Posted September 27, 2007 Author Share Posted September 27, 2007 Nice game Personal result after 3 tries 18.6 secNice done ^^ I just cant beat 19.5 Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
AlmarM Posted September 27, 2007 Author Share Posted September 27, 2007 I've added Online Top 3 Highscore ^^ Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 28, 2007 Moderators Share Posted September 28, 2007 Ty and what you mean with "0.9 seconds"... You eddited the script ?? Or... What you did ?No, it was about 7 or 8 lines of code... a loop + a For loop 1 to 36 + controlcommand(...ISENABLED) + controlclick Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
poisonkiller Posted September 28, 2007 Share Posted September 28, 2007 (edited) Fastest: 20sec Edit: 19.4sec Edited September 28, 2007 by poisonkiller Link to comment Share on other sites More sharing options...
AlmarM Posted September 28, 2007 Author Share Posted September 28, 2007 Nice time... Ive added lastest example script With About window and save things added Thanks to alien13 for some things ^^ Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. 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