The first parameter is not the name of the file but the actual text of the macro. The text can be loaded from a file or be constructed dynamically. Dim( my_script, string ) FileReadAll("macroname.mcs", my_script ) MacroPlayBack(my_script,0,0,False) For more info see examples in the on-line help file (Open MacroPlayBack topic then press the example button on the help system toolbar) : The following script says there is an error in the syntax. : MacroPlayBack("macroname.mcs",0,0,False) : What is the problem?
|