Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Applescript et menu

2 réponses
Avatar
LeBuss
Bonjour, je souhaite commander une appli (iStumbler) avec AppleScript.
Pour ce faire j'ai besoin de simuler l'action sur les touches suivantes:

CTRL F2
flèche droite
flèche droite
flèche droite
flèche droite
flèche bas
flèche bas
enter

j'ai bien trouvé :

tell application "System Events"
keystroke .....
end tell

mais je vois pas comment émuler mes touches.

Merci pour aide

2 réponses

Avatar
Patrick Stadelmann
In article <4c261483$0$22389$,
LeBuss wrote:

Bonjour, je souhaite commander une appli (iStumbler) avec AppleScript.
Pour ce faire j'ai besoin de simuler l'action sur les touches suivantes:

CTRL F2
flèche droite
flèche droite
flèche droite
flèche droite
flèche bas
flèche bas
enter

j'ai bien trouvé :

tell application "System Events"
keystroke .....
end tell

mais je vois pas comment émuler mes touches.



tell application "iStumbler" to activate
tell application "System Events"
tell process "TextEdit"
key code ...
end tell
end tell

la liste des codes est ici : <http://www.flyingmeat.com/fs/
flystashweb.cgi/117afd02-f657-01d9-0fb0-c0cbe4c4edd6>

Pour Control + F2, utiliser "keycode ... using control down"

Patrick
--
Patrick Stadelmann
Avatar
LeBuss
Super merci bcp