Jump to content

Please I need help with this code - (Locked)


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Developers

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.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...