How do I add a cooldown to my macro?

Advanced Macro Recorder/Editor.

Moderator: Pulover

WekizZ
Posts: 73
Joined: 14 Jul 2017, 04:40

How do I add a cooldown to my macro?

Post by WekizZ » 29 May 2023, 02:58

This is one of my macros and as you can see I use Go To, but what I want to ad here is a timer.

Code: Select all

CoordMode, Pixel, Window
ImageSearch, FoundX, FoundY, 916, 1302, 1044, 1428, C:\Users\AppData\Roaming\MacroCreator\Screenshots\Screen_20230528134728.png
If (ErrorLevel = 0)
{
    Sleep, 75
    Send, {1 Down}
    Sleep, 35
    Send, {1 Up}
    Goto, MPcheck
}
Else
{
    If (ErrorLevel)
    {
        Goto, Shater
    }
}
A 10s cooldown timer before this (macro needs to know how long it passed since the last click, to avoid spam):

Code: Select all

{
    Sleep, 75
    Send, {1 Down}
    Sleep, 35
    Send, {1 Up}
    Goto, MPcheck
}
This is all made in PMC so I might need extra guidance :roll:

Return to “Pulovers Macro Creator”