1Man2Controllers
Enthusiast
I created a script to automatically run the claw machine. I have got it to successfully grab 2 of the plushies so far.
To run the script use AutoHotKey. Press F6 to run a loop attempting each plushie once, then coming back around. Press F7 to run the loop on select plushies, currently set to always attempt Shiny Wasabi Kitty.
Copy and save into a file ending in .ahk (ex: shiny_wasabi_kitty_claw.ahk)
To run the script use AutoHotKey. Press F6 to run a loop attempting each plushie once, then coming back around. Press F7 to run the loop on select plushies, currently set to always attempt Shiny Wasabi Kitty.
Copy and save into a file ending in .ahk (ex: shiny_wasabi_kitty_claw.ahk)
Code:
Process,Priority,,High
F4::pause, toggle
F5::reload
F6::
plushieCoords := GetPlushieCoords()
ActivateWindow()
loop{
AttemptGrab(plushieCoords.humpy)
AttemptGrab(plushieCoords.muffy)
AttemptGrab(plushieCoords.smokey)
AttemptGrab(plushieCoords.poopy)
AttemptGrab(plushieCoords.saki)
AttemptGrab(plushieCoords.poopy2)
AttemptGrab(plushieCoords.masterHentai)
AttemptGrab(plushieCoords.grindy)
AttemptGrab(plushieCoords.princessRobotBubblegum)
AttemptGrab(plushieCoords.shinyWasabiKitty)
}
return
; Remove the semicolon before the one or more you want to attempt
F7::
plushieCoords := GetPlushieCoords()
ActivateWindow()
loop{
; AttemptGrab(plushieCoords.humpy)
; AttemptGrab(plushieCoords.muffy)
; AttemptGrab(plushieCoords.smokey)
; AttemptGrab(plushieCoords.poopy)
; AttemptGrab(plushieCoords.saki)
; AttemptGrab(plushieCoords.poopy2)
; AttemptGrab(plushieCoords.masterHentai)
; AttemptGrab(plushieCoords.grindy)
; AttemptGrab(plushieCoords.princessRobotBubblegum)
AttemptGrab(plushieCoords.shinyWasabiKitty)
}
return
KeyPress(key)
{
down := "{" . key . " down}"
up := "{" . key . " up}"
Send %down%
Sleep 150
Send %up%
Sleep 150
}
ActivateWindow()
{
WinActivate, ahk_exe GTA5.exe
Sleep 300
}
PlayShinyWasabiKittyClaw()
{
sleep 200
KeyPress("e")
sleep 6000
}
WaitForClawReturn(){
sleep 13000
}
MoveToRow(num)
{
KittyRow := [20, 1590, 2680, 4000]
sleepWait := KittyRow[num]
Send {w down}
sleep sleepWait
Send {w up}
sleep 1000
}
MoveToCol(num)
{
KittyCol := [20, 1900, 2200, 2900, 3320]
sleepWait := KittyCol[num]
Send {d down}
sleep sleepWait
Send {d up}
sleep 1000
}
GetPlushieCoords(){
plushieCoords := {}
princessRobotBubblegumCoords := {w: 3760, d: 2050} ;lined up
shinyWasabiKittyCoords := {w: 3760, d: 3770} ;lined up
masterHentaiCoords := {w: 2800, d: 3200} ;lined up
sakiCoords := {w: 1590, d: 3660} ;success
humpyCoords := {w: 400, d: 2000} ;lined up
grindyCoords := {w: 3600, d: 450} ;lined up
smokeyCoords := {w: 1900, d: 450} ;lined up
muffyCoords := {w: 20, d: 3320} ;success
poopyCoords := {w: 1590, d: 2280} ;lined up
poopy2Coords := {w: 2800, d: 1550} ;lined up
plushieCoords.princessRobotBubblegum := princessRobotBubblegumCoords
plushieCoords.shinyWasabiKitty := shinyWasabiKittyCoords
plushieCoords.masterHentai := masterHentaiCoords
plushieCoords.saki := sakiCoords
plushieCoords.humpy := humpyCoords
plushieCoords.grindy := grindyCoords
plushieCoords.smokey := smokeyCoords
plushieCoords.muffy := muffyCoords
plushieCoords.poopy := poopyCoords
plushieCoords.poopy2 := poopy2Coords
return plushieCoords
}
DropClaw()
{
KeyPress("enter")
}
MoveToPlushie(plushie)
{
Send {w down}
sleep plushie.w
Send {w up}
sleep 1000
Send {d down}
sleep plushie.d
Send {d up}
sleep 1000
}
AttemptGrab(plushie)
{
PlayShinyWasabiKittyClaw()
MoveToPlushie(plushie)
DropClaw()
WaitForClawReturn()
}