MikelSevrel Posted February 21, 2006 Posted February 21, 2006 (edited) I'm trying to set up a script where I can input the location of an external program into a variable and then use RunWait to launch the program from the variable. It doesn't seem to work. Any ideas on how to get it to work? I want something basically like this: expandcollapse popup $VDUB = "D:\vdub2\vdub.exe" RunWait($VDUB & "/capture /capchannel 31 /capdevice Bt878 /capfile program.avi /capstart 2", "D:\My Videos")[code=auto:0] Edited February 21, 2006 by MikelSevrel Coming soon.... Moderators big_daddy Posted February 21, 2006 big_daddy Moderators 2.6k 7 Moderators Posted February 21, 2006 Try this: $VDUB = "D:\vdub2\vdub.exe" RunWait($VDUB & " /capture /capchannel 31 /capdevice Bt878 /capfile program.avi /capstart 2 D:\My Videos") Notice I added a space between the progam and it's arguments.
ChrisL Posted February 21, 2006 Posted February 21, 2006 (edited) RunWait($VDUB & "/capture /capchannel 31 /capdevice Bt878 /capfile program.avi /capstart 2", "D:\My Videos")Do you need to put a space between the Var and the switches?RunWait($VDUB & " /capture /capchannel 31 /capdevice Bt878 /capfile program.avi /capstart 2", "D:\My Videos")$VDUB & "{This is where I put a space} /capture......Edit* C*ck... Too slow Edited February 21, 2006 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
MikelSevrel Posted February 21, 2006 Author Posted February 21, 2006 Ahh, of course, I'm an idiot Thanks! Coming soon....
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now