1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Request Easier automation integration

Discussion in 'Client & Site Suggestions' started by Negrita, Sep 3, 2018.

  1. Negrita

    Joined:
    Jan 28, 2017
    Messages:
    491
    Likes Received:
    183
    @Arbiter
    Use case: I want to schedule my bot to start at 2pm every day via Windows Task scheduler via a powershell script bot:

    I could use something as following:
    (this in my opinion is already too cumbersome. but it's managable)
    Code (Text):
    1.  
    2. $gameMode = "osrs"; #"osrs" or "rs3"
    3. $username = "Negrita";
    4. $password = "MySecretPassword";
    5. $accountAlias = "Junker3";
    6. $botName = "ChickenFighter";
    7.  
    8. $jagexAppletViewer = "";
    9.  
    10. if($gameMode -eq "osrs"){
    11.     $jagexAppletViewer = Get-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\jagex-jav\shell\open\command;
    12. }  elseif($gameMode -eq "rs3"){
    13.     $jagexAppletViewer = Get-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\jagex-javs\shell\open\command;
    14. } else {
    15.     Write-Error("UnSupported game types: osrs|rs3");
    16.     return;
    17. }
    18.  
    19.  
    20. $pclass = [wmiclass]'root\cimv2:Win32_Process'
    21. $rs_pid = $pclass.Create($jagexAppletViewer.'(default)', '.', $null).ProcessId;
    22.  
    23.  
    24. $command = [string]::Format("C:\Program Files (x86)\RuneMate\RuneMate.exe -login={0}:{1} -autostart={2}:{3}:{4}", $username, $password, $rs_pid, $accountAlias, $botName);
    25.  
    26. $rm_pid = $pclass.Create($command , '.', $null).Process
    27.  
    28.  
    Great this works.
    But I have no way of tracking multiple things:
    • Bot succesfully started
    • Bot still doing something (useful)
    • Bot crashed (unless the bot would call System.exit(exitCode))
    • Bot completed (could check RS Highscores) (unless the bot would call System.exit(exitCode))

    In my particular case:
    O hey I'm banned, but the bot keeps running (and charging).
    2018-09-03 01_02_50-Start.png


    Other suggested improvements:
    Bot name:
    * Disallow space (not feasible?)
    * Allow wild cards or substitude "_" for a space
    * Display the internal ID of a bot somewhere (not wanted? Even if displayed > allows spaces)
    * Support quotes to provide arguements to autostart

    Account alias:
    * similiar problem > disallow space when entering an account alias
    * Support quotes to provide arguments to autostart
    --- Double Post Merged, Sep 3, 2018, Original Post Date: Sep 3, 2018 ---


    //Rant - part 2
    Probably going to be rejected because "there is a way...", I think handling RM via command arguments can use a serious upgrade.

    • I need to start a new RuneMate.exe process for each RS instance (eating up a lot of CPU)
    • I barely have a way of tracking what is going on
    • It's in general super sensetive to spaces and uncommon chars
    • I have to kill both the RuneMate & RS spid to stop an instance. Some more graceful shutdown would be cool.

    Ideally I'd like to just be able to run one command:
    and when it finished, the process just kills itself.

    AND/OR
    query the current running instances via a URL.
    Add instance(s) to my running RuneMate process via command line/scheduler
     
    #1 Negrita, Sep 3, 2018
    Last edited: Sep 3, 2018
    Gengsta and American Express like this.
  2. Gengsta

    Gengsta Community Manager

    Joined:
    Apr 7, 2015
    Messages:
    1,392
    Likes Received:
    763
    I think this is going to be in RuneMate 2020.
     
    Wet Rag, TheySeeMe and Savior like this.

Share This Page

Loading...