Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #If IsMouseVisible() and WinActive("Darkfall Online")
- IniFile := "c:\loot.txt"
- FileGetSize, size, %IniFile%
- if (size = "")
- {
- IniWrite, 1300, %IniFile%, Loot, xdest ; --- destination x pos
- IniWrite, 700, %IniFile%, Loot, ydest ; --- destination y pos
- }
- else
- {
- IniRead, xdest, %IniFile%, Loot, xdest ; --- destination x pos
- IniRead, ydest, %IniFile%, Loot, ydest ; --- destination y pos
- }
- CoordMode, Pixel
- ;quick loot -------------------------
- $!Lbutton::
- MouseGetPos, x1, y1
- MouseClickDrag, left, x1, y1, xdest, ydest, 0 ;0 is mouse speed, 0 is instant
- MouseMove, x1, y1, 0 ;0 is mouse speed, 0 is instant
- return
- ;loot destination -------------------------
- $!Rbutton::
- MouseGetPos, xdest, ydest
- IniWrite, %xdest%, %IniFile%, Loot, xdest
- IniWrite, %ydest%, %IniFile%, Loot, ydest
- return
- IsMouseVisible()
- {
- StructSize := A_PtrSize + 16
- VarSetCapacity(InfoStruct, StructSize)
- NumPut(StructSize, InfoStruct)
- DllCall("GetCursorInfo", UInt, &InfoStruct)
- Result := NumGet(InfoStruct, 8)
- if Result
- return 1
- else
- return 0
- }
Advertisement
Add Comment
Please, Sign In to add comment