Jump to content
Macro Express Forums

msibleyj

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by msibleyj

  1. Putting in some short delays helped. But, I also noticed that the problem occurred during debugging while stepping through. It works much better when just invoking the macro.
  2. I have a macro to iterate through a directory of files, open each one and perform functions, which involve saving the processed file to a different filename. Unfortunately, the output of the directory and filename is truncated. The amount of truncation appears to be different from time to time. I using ME Pro 6 Name Value dirNG C:\Users\abc123\Downloads\ABCD\QEEG\ABCDE\NG\ T[1] ABCDE_20230210_EC.ng Text Type (Simulate Keystrokes): %dirNG%%T[1]% Output in file open dialog: C:\Users\abc123\Downloads\ABCD\QEEG\ABCDE\NG\ABCDE_20230 --or-- C:\Users\abc123\Downloads\ABCD\QEEG\ABCDE\NG\ABCDE_2023010 --or-- C:\Users\abc123\Downloads\ABCD\QEEG\ABCDE\NG\ABCDE_2023010_EC
  3. Thanks rberq. I think I accomplished the same thing with this ugly hack: Repeat with Folder C:\foo\bar Variable Set String %FileExt% to "%T[1]%" Split String "%FileExt%" on "." into %parts%, starting at 1 Variable Set String %dir% to "C:\foo\bar\" ... Text Type (Simulate Keystrokes): %dir%%parts[1]%_LE.txt Yours, of course, is more elegant. Kindly, Mark
  4. I'm using the Process Folder macro to go through a directory of files and process them in a program. But, I need to append some text to the filename each time I finish the processing. The Process Folder scripts reads the filenames into the array %T[1]% and iterates through the array. When I need to save the file that just been processed, I need to add "_LE" to the end of the filename without changing the extension. For example: the original file might be named foo.bar but I need to name the newly processed file as foo_LE.bar. I assume I could split the text into parts somehow and concatenate afterwards. Thanks, Mark
  5. Excellent! Got it to work when I created and entered %nCount% into the Variable field on the Repeat Start dialog: Thanks a million!! Mark
  6. I need to create an array with the following values: 1 0.6 2 1.5 3 2.5 4 3.5 5 4.5 6 5.5 7 6.5 8 7.5 9 8.5 10 9.5 11 10.5 12 11.5 13 12.5 14 13.5 15 14.5 16 16 17 18.5 18 22.5 19 27.5 20 32.5 21 40 22 63.5 So, when I increment through the array, it would return the values. For example %test[3]% = 2.5 How can I load these values into the array without having to manually enter a modify variable for each value? Mark
  7. New user, testing out Macro Express Pro. Please point me in the right direction here. I have a program to analyze physiological data, which I do on an ongoing basis. I have recorded a macro to open a data file with the program, click through the menus to do the process and save the 2 output files. Seems to work OK. But, I need to go through hundreds of these data files. So, I need to sequentially go through the data files in a given directory, process the data with the program, save to 2 output files each that contain the filename of the original data file plus a "z" or "f" to reflect the type of analysis. I'm thinking that I'll need a macro to iterate throught the data file directory, each time recording the name of the respective data file, and run another macro that actually produces the output files (naming each one accordingly). Some general pointers is probably all I need. Thanks. Mark
×
×
  • Create New...