我想要一个只在游戏窗口生效的脚本。以下是我现在用的脚本
[General]
SyntaxVersion=2
BeginHotkey=49
BeginHotkeyMod=2
PauseHotkey=0
PauseHotkeyMod=0
StopHotkey=50
StopHotkeyMod=2
RunOnce=0
EnableWindow=
MacroID=c4a5a3d6-b74a-4a85-99b5-05fdc51f5560
Description=自动喊话
Enable=1
AutoRun=0
[Repeat]
Type=1
Number=1
[SetupUI]
Type=2
QUI=
[Relative]
SetupOCXFile=
[Comment]
[Script]
RunApp "D:\大话西游\game.ico"
KeyPress "Up", 1
KeyPress "Enter", 1
KeyPress "Up", 2
KeyPress "Enter", 1
Delay 20000