I recently remembered that there was an AHK script on here from a while back to make buying stuff from an store easier but AHK has since deprecated V1 and refined their language with V2 which is now their focus and I decided I'd write a similar script to the one provided by Catopillar, although mine will work slightly differently.
to use this you will need to have AHK V2 installed. For now I'll just be providing the script which you can save into a text document and replace it's extension with .ahk
Code: Select all
#Requires AutoHotkey v2.0-rc.2
#Hotif WinActive("AHK_exe nwmain.exe")
Global DragDistance := 300
; Use Ctrl + F to quickly buy 10 of the item you are hovering the cursor over.
^f:: {
MouseGetPos &StartX, &StartY
Loop(10) { ; change the loop count to however many times you want it to make the purchase before stopping
Click "Down Right"
Sleep 220
MouseMove StartX + DragDistance, StartY
Click "Up Right"
Sleep 220
MouseMove StartX, StartY
}
}
Code: Select all
#Requires AutoHotkey v2.0-rc.2
#Hotif WinActive("AHK_exe nwmain.exe")
Global DragDistance := 300
; Use Ctrl + F to quickly buy 10 of the item you are hovering the cursor over.
^f:: {
MouseGetPos &StartX, &StartY
Loop(10) { ; change the loop count to however many times you want it to make the purchase before stopping
MouseClickDrag "right", StartX, StartY, StartX + DragDistance, StartY
sleep 400 ;Adjust the sleep timer to speed up or slow down the buy process
}
MouseMove StartX, StartY
}
#Hotif
Basic use is as follows:
- Put your cursor on the item you want to buy multiple of.
- Hold Ctrl and press the F key (Ctrl + F)