bigassmuffin Posted June 20, 2006 Share Posted June 20, 2006 I have made a tool for this game clled conquer online... And I realesed this program online so anyone can download, but I hate when like 500 leechers download who dont deserve the bot..So I want on startup to play a random password that you must get right in order to use bot... Each password would include a simple question like "Sleep(1000) will wait x seconds before continuing the script" and other simple things like this to prevent PURE NOOBS from using bot.. The reason I want to create a different password each start is so someone cant jsut post the password I found this on this site #include <guiconstants.au3> guicreate("MAIN", 300, 300) $input_pw = guictrlcreateinput("", 10, 10, 100, 20, $ES_PASSWORD) guisetstate() while 1 $msg = guigetmsg() if $msg = $GUI_EVENT_CLOSE then exit sleep (100) wend Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted June 20, 2006 Share Posted June 20, 2006 (edited) check it out Global $password While 1 $length = InputBox("Length","How long you want it") If StringIsDigit($length) Then ExitLoop Else MsgBox(0,"Type in a number","Type in a freaking number") EndIf WEnd For $i = 1 to $length $password = $password & Chr(Random(97,122)) Next MsgBox(0,"Your password is",$password) Edited June 20, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 20, 2006 Moderators Share Posted June 20, 2006 Better yet, look what you get when you use the Search Option:http://www.autoitscript.com/forum/index.ph...Random+Password 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...
bigassmuffin Posted June 20, 2006 Author Share Posted June 20, 2006 hmmm...maybe I worded this wrong... I want something like this..(imagin below is actual scipt) Choose Random Password (1, 2, 3, 4, 5, 6, 7, 8, 9, 1) 1) Gui Create blah blah blah GuiCreateLabel (blah blah blah) Password = triangle 2) Gui Create blah blah blah GuiCreateLabel (blah blah blah) Password = square 3) Gui Create blah blah blah GuiCreateLabel (blah blah blah) Password = rectangle 4) Gui Create blah blah blah GuiCreateLabel (blah blah blah) Password = circle and so forth So I dont want a passwords with random caharacters, I want a password to appear out of the following 10 Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted June 20, 2006 Share Posted June 20, 2006 (edited) u just answered the freaking problem urself.... #include <GUIConstants.au3> Global $pass[4] $pass[1] = "Circle" $pass[2] = "Square" $pass[3] = "Triangle" $random = Round(Random(1,3),0) GUICreate("AForm1", 622, 441, 192, 125) GUICtrlCreateLabel($pass[Ran($random)], 112, 72, 43, 17) GUISetState(@SW_SHOW) while 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit EndIf sleep(10) WEnd Func Ran($code) For $i = 1 to 3 If $code = $i Then Return $i EndIf Next EndFunc Edited June 20, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
bigassmuffin Posted June 21, 2006 Author Share Posted June 21, 2006 u just answered the freaking problem urself.... #include <GUIConstants.au3> Global $pass[4] $pass[1] = "Circle" $pass[2] = "Square" $pass[3] = "Triangle" $random = Round(Random(1,3),0) GUICreate("AForm1", 622, 441, 192, 125) GUICtrlCreateLabel($pass[Ran($random)], 112, 72, 43, 17) GUISetState(@SW_SHOW) while 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exit EndIf sleep(10) WEnd Func Ran($code) For $i = 1 to 3 If $code = $i Then Return $i EndIf Next EndFunc thankxs, this is perfect! 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