Cypharr Posted January 30, 2024 Posted January 30, 2024 While 1 ;loop indefinitely Global $iRandom ; Declare a variable - to store the random numbers $iRandom = Random(1, 4, 1) ControlSend("[CLASS:Sandbox:DefaultBox:LaunchUnrealUWindowsClient]","","","$iRandom",1) ControlSend("[CLASS:LaunchUnrealUWindowsClient]","","","$iRandom",1) Sleep(1000) ;Sleep 1 seconds ControlSend("[CLASS:Sandbox:DefaultBox:LaunchUnrealUWindowsClient]","","","$iRandom",1) ControlSend("[CLASS:LaunchUnrealUWindowsClient]","","","$iRandom",1) Sleep(1000) ;Sleep 1 seconds ControlSend("[CLASS:Sandbox:DefaultBox:LaunchUnrealUWindowsClient]","","","$iRandom",1) ControlSend("[CLASS:LaunchUnrealUWindowsClient]","","","$iRandom",1) Sleep(1000) ;Sleep 1 seconds ControlSend("[CLASS:Sandbox:DefaultBox:LaunchUnrealUWindowsClient]","","","$iRandom",1) Sleep(2000) ;Sleep 2 seconds ControlSend("[CLASS:LaunchUnrealUWindowsClient]","","","$iRandom",1) Sleep(55000) ;Sleep 40 seconds WEnd The issue is the function keep reading the variable and letters I think individual letter instead of reading a return value from 1 to 4 integer at random. Please help.
spudw2k Posted January 30, 2024 Posted January 30, 2024 Welcome @Cypharr. Unfortunately it is against the forum rules to discuss, "Launching, automation or script interaction with games or game servers, regardless of the game."; so I am afraid you won't get assistance with this script. Please also note rule #7 in the forum rules as well, as this post will likely be locked. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
argumentum Posted January 30, 2024 Posted January 30, 2024 41 minutes ago, Cypharr said: LaunchUnreal Welcome to the forum. Forum rules say no game stuff. I'd get in trouble Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Cypharr Posted January 30, 2024 Author Posted January 30, 2024 Okay, noted. Thank you for letting me know. I'll rephrase the question. Werty 1
Developers Jos Posted January 30, 2024 Developers Posted January 30, 2024 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