commit efc256eb2ed9dd3a81e9d64f8ca63e7bbaccc3e8
parent 34850e5f5cbc9a01606967f10d59fea7e33895dc
Author: breadcat <breadcat@users.noreply.github.com>
Date: Mon, 1 Apr 2024 22:23:55 +0100
Add OSRS drop item macro
Diffstat:
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git 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%