Need advice on how to make each file in a folder open
Moderators: Dorian (MJT support), JRL
Need advice on how to make each file in a folder open
First off let me say hello , and this is a great site
Now to my problem , Im having a difficult time trying trying to make my program.
What I am trying to do is make a macro that will open (folder) My documents/My Sweepstakes, Then proceed to open the first file in the folder , which is a roboform passcard that is linked to a website and will autofill/sumbit for me. i want my macro to wait 30 sec after opening the passcard,then close the webpage,and continue to the second file in the folder and repeat this process until all files in the folder have been opened.
-----This is as far as i have gotten i cant find anything in the forums that comes close to explaining how to do this-----------
Run Program>C:\WINDOWS\explorer.exe C:\Documents and Settings\Default\My Documents\My Sweepstakes
WaitWindowOpen>My Documents\My Sweepstakes*
SetFocus>My Documents\My Sweeptakes*
This is and example of the files in the folder.
"C:\Documents and Settings\Default\My Documents\My RoboForm Data\Default Profile\Thecelebritycafe.rfp" -l
They are all roboform passcards that link to websites and will autofill and submit my info
Thank you in advance-- penolope--
Now to my problem , Im having a difficult time trying trying to make my program.
What I am trying to do is make a macro that will open (folder) My documents/My Sweepstakes, Then proceed to open the first file in the folder , which is a roboform passcard that is linked to a website and will autofill/sumbit for me. i want my macro to wait 30 sec after opening the passcard,then close the webpage,and continue to the second file in the folder and repeat this process until all files in the folder have been opened.
-----This is as far as i have gotten i cant find anything in the forums that comes close to explaining how to do this-----------
Run Program>C:\WINDOWS\explorer.exe C:\Documents and Settings\Default\My Documents\My Sweepstakes
WaitWindowOpen>My Documents\My Sweepstakes*
SetFocus>My Documents\My Sweeptakes*
This is and example of the files in the folder.
"C:\Documents and Settings\Default\My Documents\My RoboForm Data\Default Profile\Thecelebritycafe.rfp" -l
They are all roboform passcards that link to websites and will autofill and submit my info
Thank you in advance-- penolope--
Penolope
Anyone at all have any idea how to make a maco that will go through each file in a folder without macroing each individual file.
Just want the macro to preform clicks at certain postions inside the folder then wait 30 sec and close the webpage then refocus on the folder and go to the next postion in the folder and click a certain spot when a file will be located.
That way i should be able to add files and remove them and the program would still work.
any advice would be very helpfull
Just want the macro to preform clicks at certain postions inside the folder then wait 30 sec and close the webpage then refocus on the folder and go to the next postion in the folder and click a certain spot when a file will be located.
That way i should be able to add files and remove them and the program would still work.
any advice would be very helpfull
Penolope
This hasn't been tested, there may be typos but it should give you an idea of how to proceed.
Code: Select all
GetFileList>C:\Documents and Settings\Default\My Documents\My RoboForm Data\Default Profile\*.rfp,files
Separate>files,;,file_names
Let>k=0
Repeat>k
add>k,1
Let>value=file_names_%k%
ExecuteFile>C:\Documents and Settings\Default\My Documents\My RoboForm Data\Default Profile\%value%
Wait>10
//OR wait for a window to close OR some other form of wait.
//If this filetype opens in Internet Explorer you might or might not
//need to close IE after each file is executed.
Until>k=file_names_count
MDL>All files processed
Oops. Don't need the path on the ExecuteFile> line. GetFileList acquires the full path by default.
Code: Select all
GetFileList>C:\Documents and Settings\Default\My Documents\My RoboForm Data\Default Profile\*.rfp,files
Separate>files,;,file_names
Let>k=0
Repeat>k
add>k,1
Let>value=file_names_%k%
ExecuteFile>%value%
Wait>10
//OR wait for a window to close OR some other form of wait.
//If this filetype opens in Internet Explorer you might or might not
//need to close IE after each file is executed.
Until>k=file_names_count
MDL>All files processed
The code you posted almost works , i will need to add wait times and i will need to close thewebpages that open after a predetermined time.
There is one thing im curiuos about , what line in the macro is the command to select next file , because the way you wrote this all it does is highlight the file then go to the next file , it doesnt double click the file to make it run.
There is one thing im curiuos about , what line in the macro is the command to select next file , because the way you wrote this all it does is highlight the file then go to the next file , it doesnt double click the file to make it run.
Penolope