Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- topLeftInventoryX := 0
- topLeftInventoryY := 0
- fourthColumnX := 0
- RandSleep() {
- Random, rand, 100, 300
- Sleep %rand%
- }
- ColumnOneToThree() {
- global topLeftInventoryX
- global topLeftInventoryY
- global fourthColumnX
- Random, mouseX, topLeftInventoryX - 3, topLeftInventoryX + 3
- Random, mouseY, topLeftInventoryY - 3, topLeftInventoryY + 3
- mousePositionX := mouseX
- mousePositionY := mouseY
- Sleep 500
- Loop, 3 {
- Loop, 7 {
- MouseMove, mousePositionX, mousePositionY
- RandSleep()
- Click
- mousePositionY := (mousePositionY + 36)
- if GetKeyState("Q")
- Pause
- }
- mousePositionY := mouseY
- mousePositionX := (mousePositionX + 43)
- }
- fourthColumnX := mousePositionX
- }
- FourthColumn() {
- global topLeftInventoryX
- global topLeftInventoryY
- global fourthColumnX
- Random, mouseX, fourthColumnX - 3, fourthColumnX + 3
- Random, mouseY, topLeftInventoryY - 3, topLeftInventoryY + 3
- mousePositionX := mouseX
- mousePositionY := mouseY
- Loop, 5 {
- MouseMove, mousePositionX, mousePositionY
- RandSleep()
- Click
- mousePositionY := (mousePositionY + 36)
- }
- }
- Main() {
- SendEvent {LShift Down}
- ColumnOneToThree()
- FourthColumn()
- SendEvent {LShift Up}
- }
- GetMouseCoordinates() {
- positionX =
- positionY =
- MouseGetPos, positionX, positionY
- MsgBox "X = " %positionX% ", Y = " %positionY%
- }
- SetTopLeftInventoryLocation() {
- global topLeftInventoryX
- global topLeftInventoryY
- MouseGetPos, topLeftInventoryX, topLeftInventoryY
- }
- 1::Mousemove,0,65,0,R
- 2::Click
- 3::Main()
- 5::SetTopLeftInventoryLocation()
- 6::GetMouseCoordinates()
- ESC::suspend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement