Oui j'ai un exemple (pas fait par moi) d'un script qui lit des données depuis intuition pour trouver quelle est la fenêtre en avant plan.
C'est plutôt compliqué je trouve. Voici un bout pour donner un exemple :
ibase = SHOWLIST(l,'intuition.library',,a)
CALL FORBID
scradd = next(ibase,56)
Say "Screenname =" IMPORT(NEXT(scradd,22))
CALL PERMIT
/* Read and Print Screen Width and Height */
ScreenWidth = C2D(IMPORT(D2C(C2D(scradd)+ 12),2))
ScreenHeight = C2D(IMPORT(D2C(C2D(scradd)+ 14),2))
Say "ScreenSize (w x h) =" ScreenWidth "x" ScreenHeight