SalazarCheats Posted March 8, 2007 Share Posted March 8, 2007 (edited) here is a script im making for a m8... CODErun("notepad") winwaitactive("Untitled") Send(Random(1,1000,1)) Sleep(1000) Send(random(a,abcdefghijklmonprstuvwxyz,a)) But it dont work... it wont send random letter... Plus the output random must be between 5 and 20 characters long... numbers and letters ONLY Edited March 8, 2007 by SalazarCheats Ok im 14 with a spelling age of a 9 year old... that explanes all my spelling mistakes Link to comment Share on other sites More sharing options...
cooldude832 Posted March 8, 2007 Share Posted March 8, 2007 are u giving notepad the focus as in the cursor is blanking in it? Link to comment Share on other sites More sharing options...
SalazarCheats Posted March 8, 2007 Author Share Posted March 8, 2007 no i get an error Ok im 14 with a spelling age of a 9 year old... that explanes all my spelling mistakes Link to comment Share on other sites More sharing options...
Developers Jos Posted March 8, 2007 Developers Share Posted March 8, 2007 here is a script im making for a m8...CODErun("notepad")winwaitactive("Untitled")Send(Random(1,1000,1))Sleep(1000)Send(random(a,abcdefghijklmonprstuvwxyz,a))But it dont work... it wont send random letter...Plus the output random must be between 5 and 20 characters long... numbers and letters ONLYWhere did you find this syntax ?random(a,abcdefghijklmonprstuvwxyz,a)Look for Asc() and Random() in the helpfile .. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
cooldude832 Posted March 8, 2007 Share Posted March 8, 2007 CODErun("notepad") winwaitactive("Untitled") Send(Random(1,1000,1)) Sleep(1000) Send(random("a,abcdefghijklmonprstuvwxyz,a")) worked with quotes around the string Link to comment Share on other sites More sharing options...
PaulIA Posted March 8, 2007 Share Posted March 8, 2007 CODErun("notepad")winwaitactive("Untitled")Send(Random(1,1000,1))Sleep(1000)Send(random("a,abcdefghijklmonprstuvwxyz,a"))worked with quotes around the stringCompiles: YesWorks: No way in hellDo what JdeB said. Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
Bert Posted March 8, 2007 Share Posted March 8, 2007 random doesn't work with letters. only numbers. look at the following example for some direction. If Random() < 0.5 Then ;Capitals $Letter = Chr(Random(Asc("A"), Asc("Z"), 1)) Else ;Lower case $Letter = Chr(Random(Asc("a"), Asc("z"), 1)) Endif The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
jvanegmond Posted March 8, 2007 Share Posted March 8, 2007 Spoiler!!Opt("WinTitleMatchMode",2)run("notepad")winwaitactive("Untitled")$randomstringFor $x = 1 to 20 $randomstring &= Chr(Random(21,65,1))NextSend($randomstring)Untested. github.com/jvanegmond Link to comment Share on other sites More sharing options...
SalazarCheats Posted March 10, 2007 Author Share Posted March 10, 2007 i have tryed everything that you have told me and it still dont work... Ok im 14 with a spelling age of a 9 year old... that explanes all my spelling mistakes Link to comment Share on other sites More sharing options...
MrCreatoR Posted March 10, 2007 Share Posted March 10, 2007 i have tryed everything that you have told me and it still dont work...What exactly not work? be more specific, in that way only you can get some help What is you trying to do? what the task Maby better that you start from learning about some simple examples of how Random works, and then go to the Chr() funcs, and then Asc()...String... Number... and then.... hm... are you has learning about Random already? Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team Link to comment Share on other sites More sharing options...
SalazarCheats Posted March 10, 2007 Author Share Posted March 10, 2007 Here was i said a few days agohere is a script im making for a m8...CODErun("notepad")winwaitactive("Untitled")Send(Random(1,1000,1))Sleep(1000)Send(random(a,abcdefghijklmonprstuvwxyz,a))But it dont work... it wont send random letter...Plus the output random must be between 5 and 20 characters long... numbers and letters ONLYIm trying to do this to make random passwords... Don't ask me why my m8 wants it...Can anyone help me!!! Ok im 14 with a spelling age of a 9 year old... that explanes all my spelling mistakes Link to comment Share on other sites More sharing options...
Developers Jos Posted March 10, 2007 Developers Share Posted March 10, 2007 Here was i said a few days agoIm trying to do this to make random passwords... Don't ask me why my m8 wants it...Can anyone help me!!!...and what have you done with all posted help/scriptlets ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
SalazarCheats Posted March 10, 2007 Author Share Posted March 10, 2007 ...and what have you done with all posted help/scriptlets ?is u meen all the help allready been givin to me... they didnt work... Ok im 14 with a spelling age of a 9 year old... that explanes all my spelling mistakes Link to comment Share on other sites More sharing options...
Developers Jos Posted March 10, 2007 Developers Share Posted March 10, 2007 is u meen all the help allready been givin to me... they didnt work...they do if applied correctly .... show what you have done and still problems with.... but don't expect people to produce code on request . SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
SalazarCheats Posted March 10, 2007 Author Share Posted March 10, 2007 they do if applied correctly .... show what you have done and still problems with.... but don't expect people to produce code on request .Here is what i have so far... That works but it dont send any letter/sCODE#NoTrayIcon;script starts hererun("notepad")winwaitactive("Untitled") ;waits untill windo is openSend(Random(1,1000,1)) ;send Random numbersSleep(1000) ;SleepsSend(random("a,abcdefghijklmonprstuvwxyz,a")) ;Sends Random letters (This don't work) ;here i need it to stop sending letters at a Random number of numbers and letter... it has to be between 5 and 20 characters long.it woruld be bests if it sent both letter and numbers in any random order...Like...'g6h7gh657'But at the moment it would be like #897hytgjuyt'Plz can anyone help Ok im 14 with a spelling age of a 9 year old... that explanes all my spelling mistakes Link to comment Share on other sites More sharing options...
Developers Jos Posted March 10, 2007 Developers Share Posted March 10, 2007 Here is what i have so far... That works but it dont send any letter/s CODE#NoTrayIcon ;script starts here run("notepad") winwaitactive("Untitled") ;waits untill windo is open Send(Random(1,1000,1)) ;send Random numbers Sleep(1000) ;Sleeps Send(random("a,abcdefghijklmonprstuvwxyz,a")) ;Sends Random letters (This don't work) ;here i need it to stop sending letters at a Random number of numbers and letter... it has to be between 5 and 20 characters long. it woruld be bests if it sent both letter and numbers in any random order... Like...'g6h7gh657' But at the moment it would be like #897hytgjuyt' Plz can anyone help The above doesn't show much progress ...does it ? Here is a func I use to generate a random password of 3 letters 3 numbers starting with a Capital letter. ; Generate New Password Func GenPassWord(ByRef $NewPsw) $NewPsw = Chr(65 + Random(0, 25, 1)) $NewPsw = $NewPsw & Chr(97 + Random(0, 25, 1)) $NewPsw = $NewPsw & Chr(97 + Random(0, 25, 1)) $NewPsw = $NewPsw & Random(1, 9, 1) $NewPsw = $NewPsw & Random(1, 9, 1) $NewPsw = $NewPsw & Random(1, 9, 1) EndFunc ;==>GenPassWord SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
SalazarCheats Posted March 10, 2007 Author Share Posted March 10, 2007 sorry it dont work can u make it so it types in to a notepad as well plz Ok im 14 with a spelling age of a 9 year old... that explanes all my spelling mistakes Link to comment Share on other sites More sharing options...
Developers Jos Posted March 10, 2007 Developers Share Posted March 10, 2007 sorry it dont work can u make it so it types in to a notepad as well plzThis Func does work , no question in my mind..... .. and I am not going to write the rest for you because you should be able to do it yourself ..... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
SalazarCheats Posted March 10, 2007 Author Share Posted March 10, 2007 it Don't work tho it don't show me the password! Ok im 14 with a spelling age of a 9 year old... that explanes all my spelling mistakes Link to comment Share on other sites More sharing options...
jvanegmond Posted March 10, 2007 Share Posted March 10, 2007 You are hopeless. github.com/jvanegmond 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