PoE flask macro help

Ask gaming related questions (AHK v1.1 and older)
vlnzxc
Posts: 1
Joined: 17 Jul 2021, 08:42

PoE flask macro help

Post by vlnzxc » 17 Jul 2021, 09:09

Can't find proper poe flask macro...
I am newbie in ahk scripting, but I tried make something like this but I cant make them work separately and not in turns

Code: Select all

XButton1::

Loop
{

    Send, 1
    Sleep 4900

    random, delay2, 57, 114
    ,%delay2%
    Send, 2
    Sleep 4800

    random, delay3, 57, 114
    ,%delay3%
    Send, 3
    Sleep 3500

    random, delay4, 57, 114
    ,%delay4%
    Send, 4
    Sleep 4800

    random, delay5, 57, 114
    ,%delay5%
    Send, 5
    Sleep 6800
}until Stop
return

F9::Stop := 1
[Mod edit: [code][/code] tags added.]

I try to make script, relying on two different scripts.
What do I want:
when I press back button on my mouse, it should press 1 and 2,3,4,5 with random delay, and press them again in that timings

User avatar
mikeyww
Posts: 26437
Joined: 09 Sep 2014, 18:38

Re: PoE flask macro help

Post by mikeyww » 20 Jul 2021, 08:09

This demo may help you.

Code: Select all

F9::on := False
XButton1::
on := True
While on {
 Send 1
 Random, delay, 57, 114
 Sleep, delay * on
 If on
  Send 2
}
Return

Post Reply

Return to “Gaming Help (v1)”