Jump to content
Macro Express Forums

punisa

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by punisa

  1. I seem to recall reading on a feature list of a full-featured FTP program that it supports restarting an FTP download. But, the simple FTP routines built into Macro Express do not have this feature. You might check WS-FTP Pro. There may be other free programs out there with that feature.

     

    Thanx Kevin, I'll check it out. I tried Filezilla and CuteFTP so far, unfortunately they do not support resume. Can this perhaps be the problem of my FTP server side?

  2. Glad we could help.

     

    Here's another possibility using only ME. Instead of looping in your first macro that checks for file existence, schedule it to run every second or two or whatever is appropriate.

     

    Then write a second macro that is activated by the appearance of the window you are watching for. (Just make sure you set Options | Preferences | Caching | Enable Window Activation Caching.) When the window appears this macro will be interleaved between scheduled executions of the first macro. This one can set and save a variable value to signal to the first macro that the window has appeared, if that's what you need. Or store an indicator in an environment variable which the first macro can access on its next execution.

     

    Thanks for input rberq ! Information will definitely come in handy.

     

    Unfortunately I can not do this (at least not for this project) as my macro process involves downloading from FTP (larger files) which stops macro until download finishes, and by so there is a great chance my window title will already disappear before downloading finishes. Yeah tricky stuff I know :lol:

  3. I have never used the FTP features of ME, so I'm shooting from the hip here. There's a "FTP Site Command" command in ME, which allows you to send a freeform command to the remote site. Can you send one of the FTP timeout commands to lengthen the allowable "dead" time? Of course, if it is the MacroExpress end that is timing out, that might not help....

     

    You can also do FTP from a DOS-style command window, with a file of FTP commands, instead of using MacroExpress. This might give you access to some of the FTP timeout options that are not available in the limited ME command set.

     

    Sorry for bugging you rberq, thanks for your reply.

    I figure you know more about FTP protocol then me ;)

    Can a file that starts downloading be resumed as with firefox for example? Or is this not possible when downloading from FTP?

     

    I successfully extended time out duration from 30 seconds up to 60 minutes, but it seems this is useless. Cause when I connect internet back the downloading does not resume (I checked several times).

  4. ok, you can extend the FTP time out duration with a tweakme3 advanced options, but further experimentation revealed that the auto resume option for downloading files is not supported. Guys what do you do if your connection breaks and you're not around?

     

    Or should I presume that this is impossible. Because Macro is locked down during download phase.

  5. Hey guys, this is from my error log:

     

    The command 'FTP Get File' timed out.

    18.9.2008 23:53:46 Macro "xxxxxxxx" Aborted

     

     

    I've instructed macro to download larger file from FTP (around 30 MB), half way through the download process I manualy disconnected internet. After a minute or so it gave me the above error and it just aborted.

    How can I avoid the termination?

     

    This is a huge problem for me, as my internet connection sometimes "hangs" up to 10 minutes. I want my macro to give up on downloading and try again later, but if it aborts, how can I proceed?

     

    Ok, I really need help this time :rolleyes:

  6. Hi, I have a macro set up to check for various files, see if they exist and so on. This is, of course, done in a loop as there are several actions.

    Now I need to check if a certain window has become active, but it seems I can not have two macro instances run at the same time, right?

     

    So, my first macro is busy doing its job and I need a second one that will monitor if a specific window has become active or not.

     

    How would I resolve this?

    Extra info: unfortunatly I can not add the monitoring action inside the first loop. Its kinda complicated to explain all the details, but it can not be done.

     

    Should I try and develop some sort of script that will monitoring for my specific window to become active? Maybe not with Macro Express, but some other tool?

     

    While we're at it, one more quick question: when working with window names I can add a partial name, but can not use wildcards, correct? That's too bad : (

  7. Hey guys, I got it.

     

    For all the future viewers, my solution:

     

    - get the FTP folder contents in a T1 variable

    - Variable -- modify string -- option2 -- save to text file (save T1 content)

    - files/folders -- text file begin process

    - loop the "text processing" to get individual FTP files

    - end text process

     

    During the loop you can check if file exists command and see if you have it in desktop folder or not.

    If not, use the command GET to download needed file (use binary method)

     

    And there you go, a handy way to transfer files across FTP to various distant computers.

     

    You can have this little script looped according to a time frame (response) you need. I have it looped every 5 minutes. Cheers !

  8. Hello all !

     

    I have a rather (I hope) simple task, but I'm kinda stuck.

    I created a macro which logs in to my FTP account every 60 seconds. I figured how to download a file from FTP to specific desktop folder.

     

    What I need to do now:

    - check (compare) entire content of FTP folder "files" with a folder "files" on desktop

    - if there is a new file on FTP, download it to desktop folder

    - after all checking resume without action IF there is no new files OR take specific action if something downloaded

     

    I'm afraid if I jump at this it will probably result in a one mile big script.

     

    Which approach would be the best?

×
×
  • Create New...