Jump to content
Macro Express Forums

Input File name automatically


Recommended Posts

Hi Friends

 

I am running a macro program which snipes my desktop at regular period and i want to name the files 1.jpg 2.jpg and so on

 

I currently dont know which option to be added in macro so as to fix the file name and save it and run the macro automatically.

 

the process i have taken so far is that the save dialog box appear and input file name and press enter

and start macro using hot key

 

is there any way to fix my problem

 

thanks in advance

Link to comment
Share on other sites

You will need to create a new macro to increment the filename counter and save the file. This new macro will be activated by the appearance of the save dialog box window - Add Activation / Window Title / Window is Opened (or Window Gains Focus - whichever works more reliably). Assuming that your main macro is always active while this process is taking place, you may want to add some logic into this new macro to check that the main macro is running (you'll have to look after the logic here yourself since there is no If Macro Running command - use a "shared" variable, or the registry); the reason for this is that the same save dialog box window may appear in other contexts where you don't want to have it generate and save a file automatically.

If you need more help, just ask (and perhaps provide details, or an image, of the save dialog box window).

Link to comment
Share on other sites

Are you saying you have an option to save the file without the 'save as' dialog box?

 

In cases like these I simply store an integer someplace, usually the registry, and increment it and write back each time.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...