Sign in to follow this  
bubbadogbubba

[AHK] PoE Trade Script (need help with delay)

Recommended Posts

This is not my work. I got it from this forum, but I couldn't find that topic so I am making a new one. This is an AHK script.

 

So this works well, but can someone help me figure out how to make the script wait 3 seconds before posting in a new channel? Thank you in advance.

 

; Version 1.2

_ran(min, max)
 {
   random, ran, %min%, %max%
   return ran
 }

`::
_roomnumber = 1
Loop, 20 {     ;Replace the number 20 with the max trade room to go to.
    if (_roomnumber = 1) {
        Send {Enter}/trade %_roomnumber%{Enter}
        Sleep, % _ran(488, 888)
        Send {Enter}$ Selling shit, pst me {Enter}     ;replace my message with YOUR message.
        Sleep, % _ran(488, 888)
        _roomnumber ++
    } else if (_roomnumber <= 9)  {
        Send {Enter}{Up 2}{Backspace}%_roomnumber%{Enter}
        Sleep, % _ran(488, 888)
        Send {Enter}{Up 2}{Enter}
        Sleep, % _ran(488, 888)
        _roomnumber ++
    } else if (_roomnumber = 10) {
        Send {Enter}{Up 2}{Backspace}%_roomnumber%{Enter}
        Sleep, % _ran(488, 888)
        Send {Enter}{Up 2}{Enter}
        Sleep, % _ran(488, 888)
        _roomnumber ++
    } else if (_roomnumber > 10) {
        Send {Enter}{Up 2}{Backspace}{Backspace}%_roomnumber%{Enter}
        Sleep, % _ran(488, 888)
        Send {Enter}{Up 2}{Enter}
        Sleep, % _ran(488, 888)
        _roomnumber ++
    }
}
return

 

 

Share this post


Link to post
Share on other sites
pronoooob    39

i use this one in AHK:

 

F6::
{
    BlockInput On
    SendMode Input
    loop
    {
        Send {ENTER}
        Send /trade %A_Index%
        Send {ENTER}
        Send {ENTER}    
        Send {Up 2}
        Sleep, 1200
        Send {ENTER}
        If A_Index = 8
        Break
        else
        Sleep, 1200
    }
    BlockInput Off
}
return
 
guruds one also works nicely :)
Edited by pronoooob

Share this post


Link to post
Share on other sites
Gurud    22

 

i use this one in AHK:

 

F6::
{
    BlockInput On
    SendMode Input
    loop
    {
        Send {ENTER}
        Send /trade %A_Index%
        Send {ENTER}
        Send {ENTER}    
        Send {Up 2}
        Sleep, 1200
        Send {ENTER}
        If A_Index = 8
        Break
        else
        Sleep, 1200
    }
    BlockInput Off
}
return
 
guruds one also works nicely :)

 

 

I'm the one who wrote this script also xD

 

I changed my script so it would also work without block input, and while you are farming etc...

Edited by Gurud

Share this post


Link to post
Share on other sites

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
Sign in to follow this