C# Bot Stop & Restart Script (VBS) menu

User Tag List

Results 1 to 13 of 13
  1. #1
    chancity's Avatar Legendary
    CoreCoins Purchaser
    Reputation
    686
    Join Date
    Jun 2012
    Posts
    1,153
    Thanks G/R
    27/341
    Trade Feedback
    11 (55%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    C# Bot Stop & Restart Script (VBS)

    This will terminate and restart the C# bot every 10 minutes.

    Throw this code in a text document and change the extension of the text document to ".vbs". Make sure to change the BotPath variable to were your 'PokemonGo.RocketAPI.Console.exe' is located. Adjust the WaitMinute to your liking too.

    Code:
    Dim BotPath : BotPath = "C:\Users\Chancey\Desktop\Pokemon-Go-Rocket-API-master\PokemonGo\RocketAPI\Console\bin\Debug\PokemonGo.RocketAPI.Console.exe"
    Dim WaitMinutes : WaitMinutes = 10
    
    While 1
    	RestartPokemonGoConsole
    	WScript.Sleep(1000 * 60 * WaitMinutes)
    WEnd
    
    Function RestartPokemonGoConsole()
    	Dim objWMIService, colProcessList
    	  
    	Dim objShell
    	Set objShell = WScript.CreateObject( "WScript.Shell" )
    	Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2")
    	Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'PokemonGo.RocketAPI.Console.exe'")
    
    	For Each objProcess in colProcessList 
    		objProcess.Terminate() 
    	Next  
    	  
    	objShell.Run(BotPath)
    End Function
    Last edited by chancity; 07-20-2016 at 09:57 AM.

    C# Bot Stop & Restart Script (VBS)
  2. Thanks valderino, deadlywario0 (2 members gave Thanks to chancity for this useful post)
  3. #2
    Neer's Avatar Trend Rider Authenticator enabled
    Reputation
    1452
    Join Date
    Apr 2007
    Posts
    749
    Thanks G/R
    180/830
    Trade Feedback
    5 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by chancity View Post
    This will terminate and restart the C# bot every 5 minutes.

    Throw this code in a text document and change the extension of the text document to ".vbs". Make sure to change the BotPath variable to were your 'PokemonGo.RocketAPI.Console.exe' is located. Adjust the WaitMinute to your liking too.

    Code:
    Dim BotPath : BotPath = "C:\Users\Chancey\Desktop\Pokemon-Go-Rocket-API-master\PokemonGo\RocketAPI\Console\bin\Debug\PokemonGo.RocketAPI.Console.exe"
    Dim WaitMinutes : WaitMinutes = 5
    
    While 1
        RestartPokemonGoConsole
        WScript.Sleep(1000 * 60 * WaitMinutes)
    WEnd
    
    Function RestartPokemonGoConsole()
        Dim objWMIService, colProcessList
          
        Dim objShell
        Set objShell = WScript.CreateObject( "WScript.Shell" )
        Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2")
        Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'PokemonGo.RocketAPI.Console.exe'")
    
        For Each objProcess in colProcessList 
            objProcess.Terminate() 
        Next  
          
        objShell.Run(BotPath)
    End Function
    Really nice solution, but this will be fixed in the next version that will be posted soonTM

  4. Thanks BackTracking (1 members gave Thanks to Neer for this useful post)
  5. #3
    chancity's Avatar Legendary
    CoreCoins Purchaser
    Reputation
    686
    Join Date
    Jun 2012
    Posts
    1,153
    Thanks G/R
    27/341
    Trade Feedback
    11 (55%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Neer View Post
    Really nice solution, but this will be fixed in the next version that will be posted soonTM
    Quick fix I made last night, so it would run while I sleep. Going to dig into the C# project today .

  6. #4
    wetshrimp's Avatar Member
    Reputation
    3
    Join Date
    Jul 2016
    Posts
    61
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    does this auto input the correct google account and code?

  7. #5
    uploader619's Avatar Knight
    Reputation
    65
    Join Date
    Jul 2016
    Posts
    219
    Thanks G/R
    13/56
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by chancity View Post
    This will terminate and restart the C# bot every 10 minutes.

    Throw this code in a text document and change the extension of the text document to ".vbs". Make sure to change the BotPath variable to were your 'PokemonGo.RocketAPI.Console.exe' is located. Adjust the WaitMinute to your liking too.

    Code:
    Dim BotPath : BotPath = "C:\Users\Chancey\Desktop\Pokemon-Go-Rocket-API-master\PokemonGo\RocketAPI\Console\bin\Debug\PokemonGo.RocketAPI.Console.exe"
    Dim WaitMinutes : WaitMinutes = 10
    
    While 1
    	RestartPokemonGoConsole
    	WScript.Sleep(1000 * 60 * WaitMinutes)
    WEnd
    
    Function RestartPokemonGoConsole()
    	Dim objWMIService, colProcessList
    	  
    	Dim objShell
    	Set objShell = WScript.CreateObject( "WScript.Shell" )
    	Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2")
    	Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'PokemonGo.RocketAPI.Console.exe'")
    
    	For Each objProcess in colProcessList 
    		objProcess.Terminate() 
    	Next  
    	  
    	objShell.Run(BotPath)
    End Function

    this is good if it accepts your google authenticate every 10 minutes

  8. #6
    CyaBB's Avatar Member Authenticator enabled
    Reputation
    14
    Join Date
    Apr 2014
    Posts
    150
    Thanks G/R
    21/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tipp: Dont use spaces in bot path

  9. #7
    chancity's Avatar Legendary
    CoreCoins Purchaser
    Reputation
    686
    Join Date
    Jun 2012
    Posts
    1,153
    Thanks G/R
    27/341
    Trade Feedback
    11 (55%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    good tip bro

  10. #8
    cedricdu94's Avatar Member
    Reputation
    11
    Join Date
    May 2009
    Posts
    175
    Thanks G/R
    9/10
    Trade Feedback
    6 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your script kill too this ? https://i.imgur.com/TyXtKc9.jpg

    For the moment i create a bat

    @ECHO OFF
    :start
    timeout /t 300
    TASKKILL /F /IM "PokemonGo.RocketAPI.Console.exe"
    timeout /t 3
    start "PokemonGo.RocketAPI.Console.exe" ""E:\Compressed\Pokemon-Go-Rocket-API-master_8\Pokemon-Go-Rocket-API-master\PokemonGo\RocketAPI\Console\bin\Debug\PokemonGo.RocketAPI.Console.exe""
    goto start
    REM pause

  11. #9
    cedricdu94's Avatar Member
    Reputation
    11
    Join Date
    May 2009
    Posts
    175
    Thanks G/R
    9/10
    Trade Feedback
    6 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by chancity View Post
    This will terminate and restart the C# bot every 10 minutes.

    Throw this code in a text document and change the extension of the text document to ".vbs". Make sure to change the BotPath variable to were your 'PokemonGo.RocketAPI.Console.exe' is located. Adjust the WaitMinute to your liking too.

    Code:
    Dim BotPath : BotPath = "C:\Users\Chancey\Desktop\Pokemon-Go-Rocket-API-master\PokemonGo\RocketAPI\Console\bin\Debug\PokemonGo.RocketAPI.Console.exe"
    Dim WaitMinutes : WaitMinutes = 10
    
    While 1
    	RestartPokemonGoConsole
    	WScript.Sleep(1000 * 60 * WaitMinutes)
    WEnd
    
    Function RestartPokemonGoConsole()
    	Dim objWMIService, colProcessList
    	  
    	Dim objShell
    	Set objShell = WScript.CreateObject( "WScript.Shell" )
    	Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2")
    	Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'PokemonGo.RocketAPI.Console.exe'")
    
    	For Each objProcess in colProcessList 
    		objProcess.Terminate() 
    	Next  
    	  
    	objShell.Run(BotPath)
    End Function
    how add many instance I have 4 bots
    Last edited by cedricdu94; 07-24-2016 at 06:32 PM.

  12. #10
    uzi94's Avatar Member
    Reputation
    4
    Join Date
    Jul 2016
    Posts
    35
    Thanks G/R
    15/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it won't use saved settings for pokefast

  13. #11
    letun9's Avatar Member
    Reputation
    3
    Join Date
    Jul 2016
    Posts
    22
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Error here Could U create the code in AutoIT
    C# Bot Stop & Restart Script (VBS)-4-png
    Last edited by letun9; 07-25-2016 at 03:19 AM.

  14. #12
    SuperBigBoss's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how to ?C# Bot Stop & Restart Script (VBS)-jpg

  15. #13
    SuperBigBoss's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

Similar Threads

  1. [Selling] Bot of Legends paid scripts
    By lucass001 in forum League of Legends Buy Sell Trade
    Replies: 0
    Last Post: 04-14-2014, 06:37 AM
  2. Zoltun Kulle Dual Box [DUAL ACCOUNT] BOTTING with an AutoIt Script
    By zewt in forum Diablo 3 Bots and Programs
    Replies: 7
    Last Post: 06-08-2012, 07:07 PM
  3. Lazy bot stopped working with the latest patch
    By SalomeT in forum WoW Bots Questions & Requests
    Replies: 9
    Last Post: 02-03-2012, 04:38 AM
  4. Lazy bot stopping - Suggest a bot.
    By Traxex84 in forum WoW Bots Questions & Requests
    Replies: 5
    Last Post: 06-03-2011, 01:35 PM
  5. Safer bot guide compile your scripts..
    By freakyflow in forum World of Warcraft Bots and Programs
    Replies: 9
    Last Post: 07-23-2008, 10:57 AM
All times are GMT -5. The time now is 02:55 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search