AHK:使用 RandomBezier 函数

AHK: Using RandomBezier Function

我正在尝试使用 RandomBezier.ahk (https://github.com/MasterFocus/AutoHotkey/tree/master/Functions/RandomBezier) 随机化鼠标路径以点击游戏中的内容。
github 中的 Example.ahk 对我有用,但是在我自己的程序中尝试使用它时,调用 RandomBezier 函数时它不起作用。
我在同一个本地目录中有这些文件。

有什么帮助可以让这个功能发挥作用吗?
谢谢

#SingleInstance force
#Include RandomBezier.ahk

^j::
screenWidth := A_ScreenWidth
screenHeight := A_ScreenHeight

//I'm using ratios so that I'm not hardcoding based on a given display resolution
Play_X := floor(0.02604*A_ScreenWidth)
Play_Y := floor(0.37037*A_ScreenHeight)
RandomBezier(0, 0, %Play_X%, %Play_Y%, "T1200 RO RD OT100 OB-100 OL0 OR0 P4-3") //<-- this line doesn't do anything. the mouse doesn't move.
;MouseMove, %Play_X%, %Play_Y%, 10 <--this line works, so I know that the variables Play_X, Play_Y works 
Sleep 50
Click 

这是一个典型的错误,试图在不属于它的地方使用遗留语法(尽管我认为它不再属于任何地方)。
函数参数作为表达式传入,而不是传统文本参数。
因此,而不是引用变量的传统方式
RandomBezier(0, 0, %Play_X%, %Play_Y%,,
你做
RandomBezier(0, 0, Play_X, Play_Y,.

总的来说,我建议您尝试摆脱遗留语法。现在已经不是 2008 年了。
阅读文档中的这一页是了解差异的良好开端
https://www.autohotkey.com/docs/Language.htm