Elin
评价数不足
A simple AutoHotKey script for the basketball minigame
由 catding 制作
A simple AutoHotKey script for the basketball minigame
   
奖励
收藏
已收藏
取消收藏
script
step 1: Install AutoHotKey
step 2: Create a script with the following code:
F6:: { Send("{Space down}") ; Press and hold the Space key Sleep(750) ; Wait for 1000 milliseconds (1 second). Change this to your desired duration. Send("{Space up}") ; Release the Space key }
step 3: Launch the script
step 4: Press F6 in the minigame
10 条留言
SpiralRazor 4 月 18 日 上午 7:30 
WhY's script below does work, you need to
A) Use auto hotkey 2
B) When running the script make sure you run it as an admin so that it can hook into the game in fullscreen
C) Rebind F11 to F6 in config because the game uses F11 to send a bug report.
Modwri 2024 年 12 月 18 日 下午 12:29 
My wrists thank you for this. Until I used this script, I could only play a few minutes of this at once before I had to do something else. This is a must for anyone with carpal tunnel! :PawHeart:
BCS 2024 年 11 月 26 日 上午 10:32 
This doesn't work at all, it never "throws" the ball.
WhY 2024 年 11 月 24 日 下午 1:33 
Below is an updated version of the script that adds a beep to signal when it's turned on or off, as well as a well to end the script. I used ChatGPT to make the improvements. Thank you for the original script!

#Requires AutoHotkey v2.0
f11::
{
Static running := False
running := !running ; Toggle running state
If running
{
SoundBeep(1500) ; Indicate the script is running
SetTimer(PressSpace, 750) ; Set the timer to repeat every 750ms
}
Else
{
SoundBeep(1000) ; Indicate the script is stopped
SetTimer(PressSpace, 0) ; Stop the timer
}
}

PressSpace()
{
Send("{Space down}") ; Press and hold the Space key
Sleep(750) ; Wait for 750 milliseconds
Send("{Space up}") ; Release the Space key
}

^x::ExitApp ; This makes CTRL+X exit the program.
Dwith 2024 年 11 月 22 日 下午 4:44 
To anyone using linux. Download autokey and use this script:

import time

while True:
keyboard.send_keys(" ")
time.sleep(0.75)

You can bind it to f6 in the GUI.
To exit you need to quit autokey. You can use the tray icon for that.
DeadpanPancake 2024 年 11 月 17 日 上午 8:17 
nice
Kaelen 2024 年 11 月 16 日 下午 8:22 
The OG and looping script didn't work for me, this is my tweaked version. It does the same thing but waits for the "u" keyboard key instead.

KeyWait, u, D
Loop {
Send {Space Down}
Sleep 750
Send {Space Up}
}

Esc::ExitApp

For those who didn't use AutoHotKey before : open a blank text, paste the script, save in the .ahk format
LedLoaf 2024 年 11 月 16 日 下午 6:45 
Hey, that's NO fun installing Michael Jordan like that.
Stick 2024 年 11 月 15 日 下午 9:05 
Added loop for the minigame and escape script

https://pastebin.com/31GUuM3V
👽𝕳𝖆𝖗𝖕𝖆𝖝👽 2024 年 11 月 15 日 下午 8:14 
Works perfectly, thanks!