Guest ILIAS Posted September 4, 2005 Share Posted September 4, 2005 HI I WANT TO ASK HOW CAN I MAKE A NUMBER GENERATOR IN WHICH YOU CAN INPUT A SPECIFIC FORM(SET OF 12) NUMBERS EX. INPUT SET =1234-1234-1234 OR XXXX-XXXX-XXXX Link to comment Share on other sites More sharing options...
LxP Posted September 4, 2005 Share Posted September 4, 2005 (edited) Welcome to the forums.Perhaps you are after the InputBox() function. Check it out in the help file and give us some more information on what you're trying to do if that doesn't meet your needs.Edit: Looking at the title of your thread, perhaps you want to output numbers. The Random() function will help you with that:local $set1 = random(1000, 9999, 1) local $set2 = random(1000, 9999, 1) local $set3 = random(1000, 9999, 1) msgBox(0x40, "Random Numbers", $set1 & "-" & $set2 & "-" & $set3)P.S. Questions like this go in the Support forum.P.S. There's no need to shout. Edited September 4, 2005 by LxP Link to comment Share on other sites More sharing options...
themax90 Posted September 4, 2005 Share Posted September 4, 2005 (edited) Here's a simple generator: ; ---------------------------------------------------------------------------- ; AutoIt Version: 3.1.1(Stable Release) ; Author: AutoIt Smith ; Script Function: ; Generates a set of 12 numbers. ; ---------------------------------------------------------------------------- #include <GuiConstants.au3> GuiCreate("NumGen", 170, 65,(@DesktopWidth-170)/2, (@DesktopHeight-65)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $NumGen = GuiCtrlCreateInput("", 10, 10, 150, 20, $ES_READONLY + $SS_CENTER) $Gen = GuiCtrlCreateButton("Generate", 10, 40, 70, 20) $Exit = GuiCtrlCreateButton("Close", 90, 40, 70, 20) GuiSetState() While 1 $msg = GuiGetMsg() If $msg = $GUI_EVENT_CLOSE Or $msg = $Exit Then ExitLoop ElseIf $msg = $Gen Then GUICtrlSetData($NumGen, Random(1000, 9999, 1) & "-" & Random(1000, 9999, 1) & "-" & Random(1000, 9999, 1)) EndIf WEnd Exit Edited September 4, 2005 by AutoIt Smith Link to comment Share on other sites More sharing options...
Guest ILIAS Posted September 4, 2005 Share Posted September 4, 2005 Thanks man sorry about shouting Link to comment Share on other sites More sharing options...
Guest ILIAS Posted September 4, 2005 Share Posted September 4, 2005 thanks autoitSmith and thanks LxP many respects 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