Page 1 sur 1

[R] Information exe ou a3x

Posté : mar. 18 nov. 2025 15:38
par scorp84
Bonjour à tous,

Je cherche à savoir si ma GUI affichée est lancée via un .exe ou via un .a3x.

Est-ce possible ?

Merci d'avance pour votre aide.

Amicalement.

BM

Re: [..] Information exe ou a3x

Posté : mar. 18 nov. 2025 15:57
par TommyDDR
Si vous voulez vous baser sur le nom du fichier en cours d'exécution :
Local $ext = StringRight(@ScriptName, 4)
If($ext == ".exe") Then
    ; exe
ElseIf($ext == ".a3x") Then
    ; a3x
Else
    ; au3
Endif

Re: [..] Information exe ou a3x

Posté : mar. 18 nov. 2025 16:28
par scorp84
Bonjour,

Nickel, merci ++

Amicalement.

BM