Sergio Posted January 30, 2016 Report Share Posted January 30, 2016 (edited) *NEW* JAIL AFK AUTO-SHUTDOWN SCRIPT! Had a long day? Want to just turn yourself in and go to sleep without having to worry about your character being murdered once hes out of jail? Then download and run this script! Double-click to run it, type in your remaining jail time, and press Enter. Once you've served your time the game will close and the computer will shut down. If you would like to not have the computer shut down and instead just quit ARMA, then edit and delete the last line of the batch file. Thanks to @Ozadu for the code. ARMA 3 ENTER SERVER MACRO Tired of spamming your enter key to get into that full ARMA server? Look no further! Download and run Autohotkey. ( I use 64bit version) Then load up the following script (64 bit) Or simply create a new script by right-clicking on the Desktop > New > Autohotkey Script. Then copy & paste the code below. Press Alt+J to activate and BOOM! You're in. #NoEnv #singleInstance, Force #MaxThreadsPerHotkey, 2 #Persistent SetBatchLines, -1 DetectHiddenWindows, On CoordMode, Mouse, Screen CoordMode, Pixel, Screen CoordMode, Tooltip, Screen SetTitleMatchMode, 2 SetKeyDelay, 30,50 SetMouseDelay 10 SendMode Event #UseHook, On jtoggle = 0 while (1) { If (jtoggle) { send, {Enter} sleep, 100 } } !j:: jtoggle := !Jtoggle return ^!Esc:: exitapp pastebin link http://pastebin.com/CvWFsMgE Edited February 2, 2016 by Sergio Updated sleep refresh from 500 to 100. Posted new Jail AFK script. Link to comment
Scott Posted January 30, 2016 Report Share Posted January 30, 2016 Anyone got the scripts that christian had posted for afking jail time? I reset my PC and the backup on those failed, best scripts NA. Where you would run it, put your jail time, and it could either kill arma or restart your pc or turn it off. Think some of them were contributed by @Ozadu If you still have them bb Sergio likes this Link to comment
Sergio Posted January 30, 2016 Author Report Share Posted January 30, 2016 That's a great question, let me ask Christian and I'll update here. christian likes this Link to comment
CyanogenCX Posted January 30, 2016 Report Share Posted January 30, 2016 (edited) I just use this, with F8 being the toggle: #InstallKeybdHook #UseHook On toggle = 0 #MaxThreadsPerHotkey 2 F8:: Toggle := !Toggle While Toggle{ Click Send {Enter} sleep 100 } return Just make sure your mouse is hovering over the server you want to join and hit f8, hit it again once you're in Edited January 30, 2016 by CyanogenCX Sergio likes this Link to comment
dj.devran Posted January 30, 2016 Report Share Posted January 30, 2016 clearly a script to delete system32 Sergio and Crossfade like this Link to comment
instamac Posted January 30, 2016 Report Share Posted January 30, 2016 7 hours ago, Scott said: Anyone got the scripts that christian had posted for afking jail time? I reset my PC and the backup on those failed, best scripts NA. Where you would run it, put your jail time, and it could either kill arma or restart your pc or turn it off. Think some of them were contributed by @Ozadu If you still have them bb if you find those jail scripts please let me know Link to comment
Ozadu Posted February 1, 2016 Report Share Posted February 1, 2016 On 1/30/2016 at 8:35 PM, Scott said: Anyone got the scripts that christian had posted for afking jail time? I reset my PC and the backup on those failed, best scripts NA. Where you would run it, put your jail time, and it could either kill arma or restart your pc or turn it off. Think some of them were contributed by @Ozadu If you still have them bb I don't have the original scripts but I wrote a new one pretty quick that works just the same. @echo off set /p input="Enter jail time(minutes): " set /a jailtime = input*60 timeout /t %jailtime% /nobreak ::kills ArmA taskkill /f /im arma3.exe ::shuts down computer shutdown.exe /s ::restarts computer shutdown.exe /r Choose one of the last 3 options and save it into a .bat file Scott, Leftie and Sergio like this Link to comment
Scott Posted February 1, 2016 Report Share Posted February 1, 2016 Just now, Ozadu said: I don't have the original scripts but I wrote a new one pretty quick that works just the same. @echo off set /p input="Enter jail time(minutes): " set /a jailtime = input*60 timeout /t %jailtime% /nobreak ::kills ArmA taskkill /f /im arma3.exe ::shuts down computer shutdown.exe /s ::restarts computer shutdown.exe /r Choose one of the last 3 options and save it into a .bat file So paste the first part and then add the 2nd part of my chosing? Thanks Link to comment
Sheriff Rick Grimes Posted February 1, 2016 Report Share Posted February 1, 2016 On 1/30/2016 at 8:35 PM, Scott said: Anyone got the scripts that christian had posted for afking jail time? I reset my PC and the backup on those failed, best scripts NA. Where you would run it, put your jail time, and it could either kill arma or restart your pc or turn it off. Think some of them were contributed by @Ozadu If you still have them bb What do the AFK jail scripts do? Link to comment
Scott Posted February 1, 2016 Report Share Posted February 1, 2016 Just now, Sheriff Rick Grimes said: What do the AFK jail scripts do? If I want to get rid of my bounty when I go to bed I can turn myself in and run the script. I put in my jail time and it will close arma after the jail time is over, that way in the morning when I get on I have no bounty and I'm out of jail. Link to comment
Sheriff Rick Grimes Posted February 1, 2016 Report Share Posted February 1, 2016 1 minute ago, Scott said: If I want to get rid of my bounty when I go to bed I can turn myself in and run the script. I put in my jail time and it will close arma after the jail time is over, that way in the morning when I get on I have no bounty and I'm out of jail. Holy fuck I want that Sergio likes this Link to comment
Sergio Posted February 1, 2016 Author Report Share Posted February 1, 2016 (edited) I just spoke with Christian Slaughter and he's given me the AFK Jail script. You can download it here. Thanks to the wonderful @Ozadu I've updated the script. Double click the .bat file to run it, it will ask for the amount of jail time you have, i.e. 45 = 45 min. Press enter. BOOM! Your PC will shut down once you're out of prison. 56 minutes ago, Sheriff Rick Grimes said: Holy fuck I want that Now u can haz Edited February 2, 2016 by Sergio christian, Leftie and Ozadu like this Link to comment
Leftie Posted February 2, 2016 Report Share Posted February 2, 2016 Would it not be a good idea to add the /f parameter to the shutdown prompt? Just in case any Windows / other program stops the shutdown process from completing successfully? Sergio likes this Link to comment
Sergio Posted February 2, 2016 Author Report Share Posted February 2, 2016 1 minute ago, Leftie said: Would it not be a good idea to add the /f parameter to the shutdown prompt? Just in case any Windows / other program stops the shutdown process from completing successfully? Good call, I've updated accordingly. Link to comment
AlonSo Posted February 6, 2016 Report Share Posted February 6, 2016 I just minimize arma then CMD > shutdown -s -f -t (time in sec) Link to comment
instamac Posted February 19, 2016 Report Share Posted February 19, 2016 I've been looking for these jail scripts forever, thanks. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now