From efc256eb2ed9dd3a81e9d64f8ca63e7bbaccc3e8 Mon Sep 17 00:00:00 2001 From: breadcat Date: Mon, 1 Apr 2024 22:23:55 +0100 Subject: Add OSRS drop item macro --- ahk-assistant.ahk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ahk-assistant.ahk') diff --git a/ahk-assistant.ahk b/ahk-assistant.ahk index f9d281e..f8bdaa3 100644 --- a/ahk-assistant.ahk +++ b/ahk-assistant.ahk @@ -282,6 +282,10 @@ F11::borderlessFullscreen() ^a::Send {End}{CtrlDown}{ShiftDown}{Home}{CtrlUp}{ShiftUp} #IfWinActive +#IfWinActive ahk_class SunAwtFrame ; vidyascape +^LButton::osrsDropItem() +#IfWinActive + ; text insertion/replacements :*?:_date:: insertDate() @@ -679,6 +683,16 @@ borderlessFullscreen() { Return } +osrsDropItem() { + SendInput {Click Right} + Sleep 25 + Mousemove ,0 ,50 ,0 ,R + Sleep 15 + SendInput {Click} + Sleep 15 + Mousemove ,0 ,-50 ,0 ,R +} + forceClose() { WinGet, PID, PID, % "ahk_id " WinExist("A") Process, Close, %PID% -- cgit v1.2.3