Page 1 sur 1

[R] Envoyer variable(s) + ligne de commande à AutoIt

Posté : sam. 12 févr. 2011 14:04
par Anthony
Bonjour à tous et merci d'avance pour votre aide :wink:
Ceci est mon deuxième post et j'aurai besoin d'ajouter une variable à ma ligne de commande.

Cette variable qui devrait renvoyer les informations à la fenêtre MMBTitle est:

Code : Tout sélectionner

$MMBTitle = 'MMBTitle'
Image
Et ma ligne de commande:

Code : Tout sélectionner

$cmd = '"C:\Program Files (x86)\RipBot264\tools\avs2yuv\pipebuf.exe" "C:\Program Files (x86)\RipBot264\tools\avs2yuv\avs2yuv.exe" "D:\temp\RipBot264temp\job1\job1.avs" - : "C:\Program Files (x86)\RipBot264\tools\x264\x264_x64.exe" --pass 1 --bitrate 852 --stats "D:\temp\RipBot264temp\job1\job1.stats" --fps 50 --force-cfr  --min-keyint 50 --keyint 500 --frames 2000 --sar 1:1 --level 4.0 --aud --nal-hrd vbr --vbv-bufsize 25000 --vbv-maxrate 25000 --filter 0,0 --ref 3  --bframes 3 --b-adapt 2   --b-pyramid none --subme 7 --aq-mode 1 --trellis 2 --partitions all --me umh --stdin y4m --output "D:\temp\RipBot264temp\video.264" - : 2'
Le but étant de récupérer une ou plusieure(s) variable(s) pour AutoIt + la ligne de commande à lancer

Mon code complet:
► Afficher le texte

Re: [..] Envoyer variable(s) + ligne de commande à AutoIt

Posté : lun. 21 févr. 2011 07:57
par Anthony
Résolu :mrgreen:

Code : Tout sélectionner

#$cmd = 'MMBTitle||50||"Programme.exe"'
$cmd = $CmdLine[1]

$CmdVar = StringSplit($cmd, "||", 1)

$MMBTitle = StringSplit($CmdVar[1], "||")
$MMBTitle = $MMBTitle[1]
$Timer    = StringSplit($CmdVar[2], "||")
$Timer    = $Timer[1]
$cmd      = StringSplit($CmdVar[3], "||")
$cmd      = $cmd[1]

MsgBox(0, "MMBTitle is:", $MMBTitle)
MsgBox(0, "Timer is:", $Timer)
MsgBox(0, "cmd is:", $cmd)
Discution suivie ici: http://autoitscript.fr/forum/viewtopic. ... 523#p44523