Coder Social home page Coder Social logo

autorecordgo's Introduction

AutoRecordGO

Automatically Record Games in CS:GO with this AutoHotKey Script.

Here is a video on how it works.

*Update*

  • I made the script erase the previous console.log to prevent large console logs in the future.

This script can be run (or compiled actually) from AutoHotKey. I am not going to release the compiled version because I do not want people thinking I hacked their computers... and I'm not sure what the rules are. If you do compile it then that means you don't need AHK installed to use the script.

Anyhow this script does 3 main things. It does not read memory or do anything with the actual client so no reason anyone would get banned for this of course. You can edit out what you like if you want. I commented stuff a bit so you can see what to remove.

Requirements:

  • AutoHotKey v1.1.17+
  • Enable console in settings
  • Add "-condebug" (without quotes) to your launch options in steam under CS:GO properties. This just outputs console to a log file (as well as the console).
  • Create a Saved_Demos folder in the csgo directory
  • Change the PlayerName value in the top of the script to your in game name. Note: The characters \.*?+[{|()^$ must be preceded by a backslash to be seen as literal. For example, \. is a literal period and \\ is a literal backslash.
  • If you changed your steam directory you will need to edit the location of the console.log in the script as well. Its at the top and is called "ConsolePath".

Without further ado.

  1. It automatically records you game demos for you. The way this works is pretty simple. -condebug writes your console to a log in the cs:go directory. This script monitors that log and when it sees that you connected to a server it (using keyboard strokes) quickly launches the console and types Record Saved_Demos{time of day} then closes the console.

  2. The script will let you press Ctrl+Shift+S to start recording as well. It doesn't stop though so just leaving a game or manually stopping it is required.

  3. This feature is more niche but I use Caps Lock for my talk button. I hated having to make sure it wasn't on when typing so this feature makes the caps lock key work as a button but never toggles on. This only affects CS:GO and Dota 2. You can change or remove this if you like. I commented these sections so you can find them.

Note: I actually use the sound files from Sc2Gears that say "Recording Started" and "Replay Saved" for this. The code is there and can be uncommented if you want to do that. I am not going to share those files though because they aren't mine. Currently it just beeps when it starts and stops letting you know it was successful. If it beeps its working because I also read the Log for that as well.

Anyhow I hope this isn't too complicated and that you guys get some use out of it. I couldn't find anything that let me auto record demos and I also kept forgetting to do it. So I solved my problem. Hope I didn't miss anything.

Feel free to comment and let me know if you have any ways to improve it.

autorecordgo's People

Contributors

valleyman86 avatar wolcano avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.