Jump to content

Join our Slack

Talk to other users and have a great time
Slack Server

Welcome to our Community

Click here to get your Exiled Bot license
Donation Store
Sign in to follow this  
cynicz

Can you code simple AHK script?

Recommended Posts

like this one ?

press F4 to start spamming ctrl+LM , and F4 again to stop it

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.


#MaxThreadsPerHotkey 2

F4::

PressKey := ! PressKey    ;Toggle PressKey True/False

Loop

{    If ! PressKey

        Break            ;If PressKey is False, stop pressing key

    Send ^{Click}
    

    Sleep 100        ;Delay between keypresses

}

Return

#MaxThreadsPerHotkey 1

 

Share this post


Link to post
Share on other sites

any idea ?

 

Having a script who can try to fuse stuff without having clik manualy

 

Yeah I wrote one a while back serj I'll find and upload it somewhere and pm ya

Share this post


Link to post
Share on other sites

In fact might as well stick it here; quick and dirty but does the job. This is based on an 800x600 POE window. Put your item in the top left of your inventory and whatever orb you want to spam 20 times in the top cell of column 3. You can also put another orb in the cell below that which it will apply afterwards, so if for example you want to apply scrap/whetstones before jews/fuses. Ctrl d to just do the 20, ctrl s to do that + the second. Obviously this is just for 6 linking/socketing it'll sail right past a 5 but game stops you applying if you have 6 (I got hold of my balls and tried a fuse on a 6l all good phew ;) )

 

^d::

IfWinExist, Path of Exile
WinActivate
#IfWinActive, Path of Exile

Loop, 20
{
Click, 520, 370, Right
Click, 470, 370, Left
}

Return

 

^s::

IfWinExist, Path of Exile
WinActivate
#IfWinActive, Path of Exile

Loop, 20
{
Click, 520, 370, Right
Click, 470, 370, Left
}

Click, 520, 400, Right
Click, 470, 400, Left

Return

Edited by bonebox

Share this post


Link to post
Share on other sites

Thx a lot,

 

I will try it fast :) and make a return

 

 

/edit..

 

Not working :(

Try to clik on item , but do nothing after

Edited by serj

Share this post


Link to post
Share on other sites

In fact might as well stick it here; quick and dirty but does the job. This is based on an 800x600 POE window. Put your item in the top left of your inventory and whatever orb you want to spam 20 times in the top cell of column 3. You can also put another orb in the cell below that which it will apply afterwards, so if for example you want to apply scrap/whetstones before jews/fuses. Ctrl d to just do the 20, ctrl s to do that + the second. Obviously this is just for 6 linking/socketing it'll sail right past a 5 but game stops you applying if you have 6 (I got hold of my balls and tried a fuse on a 6l all good phew ;) )

 

^d::

IfWinExist, Path of Exile

WinActivate

#IfWinActive, Path of Exile

Loop, 20

{

Click, 520, 370, Right

Click, 470, 370, Left

}

Return

 

^s::

IfWinExist, Path of Exile

WinActivate

#IfWinActive, Path of Exile

Loop, 20

{

Click, 520, 370, Right

Click, 470, 370, Left

}

Click, 520, 400, Right

Click, 470, 400, Left

Return

 

You need to add some delays

Share this post


Link to post
Share on other sites

You need to add some delays

 

Not on mine but yeah actually if you've not got a speedy connection you prob will. Remember you need to allow for the effects to register server side.

Share this post


Link to post
Share on other sites

What do you mean? How can I do it?

 

lol add delays in the loops like you said ;) Trial and error to get min values that work for you

 

e.g.

 

Loop, 20

{

Sleep 200

Click, 520, 370, Right

Sleep 200

Click, 470, 370, Left

}

Edited by bonebox

Share this post


Link to post
Share on other sites

lol add delays in the loops like you said ;) Trial and error to get min values that work for you

 

e.g.

 

Loop, 20

{

Sleep 200

Click, 520, 370, Right

Sleep 200

Click, 470, 370, Left

}

 

Ah I see. I've thought there is some option in POE client for "effects to register server side"

 

Edit:

For me "Sleep 100" is enough.

Edited by kokosoida

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...