#IfWinActive Haven and Hearth
^LButton::
Click
MouseX = 0
MouseY = 0
MouseGetPos, MouseX, MouseY
Sleep 300
MouseClick, left, 9, 35
Sleep 300
MouseMove, MouseX, MouseY
Sleep 300
Return
Trafalgar wrote:I ctrl-click now with a AutoHotkey macro:
- Code: Select all
#IfWinActive Haven and Hearth
^LButton::
Click
MouseX = 0
MouseY = 0
MouseGetPos, MouseX, MouseY
Sleep 300
MouseClick, left, 9, 35
Sleep 300
MouseMove, MouseX, MouseY
Sleep 300
Return
The sleep number is 300 to make it more responsive, but if the game is lagging it'll fail to drop the item because it doesn't wait long enough. Increasing the sleep time will make it take longer, but will make it work better during lag.
It would be better if there was a drop key integrated into the game, because then lag wouldn't be an issue and the mouse wouldn't be moving around while dropping items and such.
Note: Don't move any windows into the top-left of your screen over your character portrait, HP, etc. That's the area where items are dropped.
Trafalgar wrote:It's for AutoHotkey.
Users browsing this forum: No registered users and 9 guests