Creating macros for a game

Ask gaming related questions (AHK v1.1 and older)
Eaisen
Posts: 1
Joined: 25 Dec 2018, 16:50

Creating macros for a game

Post by Eaisen » 25 Dec 2018, 17:08

A game called Moomoo.io, can anyone create a macro for it, all i want it to do is when i press a button on the keyboard it will switch to the hat i want, im not too sure how to do it, so will someone do it for me
for example...


V::
Equip, {BullHelmet}

R::
Equip, {SoldierHelmet}

(just an example, someone please help me it would be much apriciated)

mast4rwang
Posts: 141
Joined: 19 Jul 2017, 09:59

Re: Creating macros for a game

Post by mast4rwang » 04 Jan 2019, 03:16

Maybe learn to code first?
Last edited by mast4rwang on 09 Jan 2019, 16:50, edited 1 time in total.

TigerYT
Posts: 24
Joined: 13 Aug 2018, 01:01

Re: Creating macros for a game

Post by TigerYT » 05 Jan 2019, 07:39

Lol This is just too dumb of a thread

mast4rwang
Posts: 141
Joined: 19 Jul 2017, 09:59

Re: Creating macros for a game

Post by mast4rwang » 09 Jan 2019, 17:40

Ok, I created a working code:

Code: Select all

#NoEnv
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#NoTrayIcon
#Persistent
#KeyHistory 0
ListLines Off
Process, Priority, , A
SetBatchLines, -1
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1
SendMode Input
CoordMode, Mouse, Screen

keyWords := {1:"moomoo", 2:"Equip,{BullHelmet}", 3:"Equip,{SoldierHelmet}",4:"atrocious grammar",5:"someone do it for me"}
;Functions

rnd(start,end,seed)
{
    nr := []
    Random,tmp,1,seed
    Loop % tmp
    {
        Random,tmp,start,end
        nr.Push(tmp)
    }
    Random,tmp,1,nr.MaxIndex()
    Return nr[tmp]
}

stupidityCalc(title)
{
    global
    bonusMultiplier := 1
    
    if (title = "Creating macros for a game")
        {
            msgbox % "kid detected in this topic!"
            ++bonusMultiplier
        }
    if (title = "fortnite")
        {
            msgbox % "cancer detected in this topic!"
            ++defaultEyeBleed
        }
    
    loop,
    {
        index := rnd(3,100,10)
        if (index > 5)
            continue
        break
    }
    return, (index * bonusMultiplier)
}

;code

defaultIQ := rnd(50,100,10)
defaultEyeBleed := 8 ;simply from reading this topic (maximum is 10)
deteriorationCoefficient := stupidityCalc("Creating macros for a game")

lostIQ := deteriorationCoefficient * defaultEyeBleed
remainingIQ := defaultIQ - lostIQ


msgbox % "due to stupidity shown in this topic there was a significant change in your IQ!`nThe lost IQ was calculated: " lostIQ " IQ`nYou have " remainingIQ " IQ remaining!!"

msgbox % "responsible keywords were detected!!"

loop % keyWords.maxindex()
    msgbox % keyWords[a_index]

msgbox % "to reduce the remaining brain cells to zero, the program will loop indefinitely!"

reload

Asansor232
Posts: 30
Joined: 05 Apr 2022, 10:37
Contact:

Re: Creating macros for a game

Post by Asansor232 » 19 May 2022, 02:02

You Need Learn
Click
MouseMove
Click, ScrollUp
Click, ScrollDown
And Return

Post Reply

Return to “Gaming Help (v1)”