Jump to content

ARMA 3 Enter Server Macro + Jail Script!


Sergio

Recommended Posts

*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 by Sergio
Updated sleep refresh from 500 to 100. Posted new Jail AFK script.
Link to comment

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 by CyanogenCX
Sergio likes this
Link to comment
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
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
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 :D

Link to comment
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
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

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  :kappa:

 

Edited by Sergio
christian, Leftie and Ozadu like this
Link to comment
  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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