Looking for help with writing a script

Hello,

I'm currently trying to write a script using AppleScript, but I'm having trouble figuring out how to do it.

Basically, I'm trying to write a script that will hold down the "a" and "w" keys at the same time, and will continue to do so until I manually terminate the program. However, I'm not sure how to do this, and I don't even know if this is actually possible in AppleScript.

Does anyone know how to code this, and if it's even possible to begin with? I'd greatly appreciate any help.

It is called "GUI Scripting" AppleScript. AppleScript works by calling other application's function via internally. GUI Scripting works by simulating users operation via externally.

https://piyomarusoft.booth.pm/items/4230018

This is whole GUI Scripting technic book written in Japanese.

But you can not press "a" and "w" keys in the same time by using GUI Scripting AppleScript.

Looking for help with writing a script
 
 
Q