How to use varible within RunWait command

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
joekingcool
Posts: 238
Joined: 14 Dec 2019, 20:21

How to use varible within RunWait command

09 Dec 2020, 02:27

ive tested with percent signs and without around variables, im assuming some kind of syntax. i seen someone else suggest storing the whole command as a variable. but its a little messy.

Code: Select all


Video_Orig_Loc =: Orig\test.mp4
Video_Edited_Loc =: Edited\FFMETADATAFILE

RunWait ffmpeg -i Video_Orig_Loc -f ffmetadata Video_Edited_Loc,,Hide

User avatar
DyaTactic
Posts: 221
Joined: 04 Apr 2017, 05:52

Re: How to use varible within RunWait command

09 Dec 2020, 05:22

Assigning a string value to the variables and using precent signs:

Code: Select all

Video_Orig_Loc := "Orig\test.mp4"
Video_Edited_Loc := "Edited\FFMETADATAFILE"

RunWait ffmpeg -i %Video_Orig_Loc% -f ffmetadata %Video_Edited_Loc%,,Hide
Or force RunWait to use an expression:

Code: Select all

Video_Orig_Loc := "Orig\test.mp4"
Video_Edited_Loc := "Edited\FFMETADATAFILE"

RunWait % "ffmpeg -i " Video_Orig_Loc " -f ffmetadata " Video_Edited_Loc,,Hide

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, daiweisc, GEOVAN and 192 guests