Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- #Warn ; Recommended for catching common errors.
- WinActivate Neverwinter Nights v1.69.8109
- invpage = 1
- inv_y_axis = 260
- Loop
- {
- ImageSearch, FoundX, FoundY, 6, 241, 338, 436, D:\Storage\Amia\h_g_inv.png
- if ErrorLevel = 2
- {
- Break
- MsgBox Search error, double-check your reference image.
- }
- if ErrorLevel = 1
- {
- if invpage <= 5
- {
- WinActivate Neverwinter Nights v1.69.8109
- invpage := (invpage + 1)
- inv_y_axis := (inv_y_axis + 32)
- Click 345, %inv_y_axis%, 1
- Sleep 1000
- }
- else
- {
- Break
- MsgBox Inventory scan complete, no hides left
- }
- }
- else
- {
- MouseClickDrag, left, FoundX, FoundY, 100, 150, 1
- Sleep 100
- }
- }
Add Comment
Please, Sign In to add comment