Sway Posted May 4, 2020 Posted May 4, 2020 Hello, I was trying to search around for a similar thread, but couldn't really make do. I am trying to have my program generate a 20 character string of random numbers and letters. Then, the program would paste it and press enter. The program would do this automatically say every minute. I've already found this script right here. I'm just having trouble making it paste and enter every minute. Any help would be appreciated, thanks Global $randomStr = "" Global $aSpace[3] Global $digits = 20 For $i = 1 To $digits $aSpace[0] = Chr(Random(65, 90, 1)) ;A-Z $aSpace[1] = Chr(Random(97, 122, 1)) ;a-z $aSpace[2] = Chr(Random(48, 57, 1)) ;0-9 $randomStr &= $aSpace[Random(0, 2, 1)] Next ConsoleWrite("String Generated: (" & $digits & " digits): " & $randomStr & @CRLF) MsgBox(0, "String Generator", "String Generated: (" & $digits & " digits): " & $randomStr & @CRLF)
Moderators Melba23 Posted May 4, 2020 Moderators Posted May 4, 2020 Sway, Could you please explain just why you need to send a random string at regular intervals? M23 P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out. Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Sway Posted May 4, 2020 Author Posted May 4, 2020 (edited) I guess game automation isn't allowed. Edited May 4, 2020 by Sway
Developers Jos Posted May 5, 2020 Developers Posted May 5, 2020 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team 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.
Recommended Posts