• Quick Announcement
    New Forum Section: Creative Content

    Hello Guest!

    We've recently added a new forum section called Creative Content. You can post screenshots, video, gifs, and more in this section if you'd like! Graphic design, video showcases, twitch highlights and anything to showcase your creativity! Please feel free to check it out.

    https://mafiacity-rp.com/forums/index.php?forums/creative-content.153/
  • Good day Guest!

    You may have noticed you are no longer able to access the Mafia City Roleplay Discord due to a recent security issue.

    You can rejoin using our Discord Invite link: https://discord.gg/fHNb6nw

Animation Automation With AutoIT

RichardCranium

Newer Guy
Joined
May 28, 2021
Messages
4
Reaction score
0
Points
1
Age
41
Quick AutoIt Script to elevate your RP a bit. If you don't know how to use AutoIt I've Linked some resources below.

Using this with a program like Stream Deck or Roccat allows you to simply add the name of the animation as a parameter to the complied exe and it'll paste it into the game for you.



The Code:
Code:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=..\exes\Action_Creation.Exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

#include <Array.au3>
;Check if an argument was passed to avoid errors.
If (Ubound($CmdLine) - 1) > 0 Then
$ParamArray = $CmdLine[0]
$Action_Item = $CmdLine[1]

;Clean Clipboard
ClipPut("")

ClipPut("/a " & $Action_Item & " 1")

Sleep (100)
Send("{t}")
Sleep (250)
Send("^v")
Send("{ENTER}")

;Clean Clipboard
ClipPut("")

EndIf



AutoIt Downloads:

Client Download
Editor Download

AutoIt Resources:

Official AutoIt Forum <-- This can be used for general questions, it's against the rules to ask about game automation.
Official AutoIt Wiki