1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I need a simple VBS script

Discussion in 'Hire a Freelancer' started by erderd, Oct 24, 2011.

  1. erderd

    erderd Newbie

    Joined:
    Oct 3, 2009
    Messages:
    46
    Likes Received:
    14
    I'm looking for someone to create a simple VBS script which will:

    Code:
    Run CCleaner (c:\progra~1\ccleaner\ccleaner /AUTO)
    Open firefox and run iMacro1
    Close firefox *once the macro has completed*
    
    ..and repeat with Macro2, 3, etc.

    I don't mind if the code is "modular" - ie, I need to paste a "block" and replace Macro1 with each macro I want to run.

    I'm willing to pay a Fiverr gig for this.
     
  2. acotut

    acotut Elite Member

    Joined:
    Dec 1, 2010
    Messages:
    2,294
    Likes Received:
    1,040
    Gender:
    Male
    Home Page:
    Have you posted this on fiverr requests already?If not,hurry ;)
     
  3. erderd

    erderd Newbie

    Joined:
    Oct 3, 2009
    Messages:
    46
    Likes Received:
    14
    Yep, I've done that.

    Maybe I'm just retarded, but it doesn't seem as simple as it first looks. I can do it with a batch file, but that's unable to close firefox once the macro is complete.

    Argh.
     
  4. rpkrocks

    rpkrocks Jr. VIP Jr. VIP

    Joined:
    Feb 4, 2010
    Messages:
    920
    Likes Received:
    918
    Location:
    Bḥārata
    Home Page:
    Why don't you try Winautomation ?:)
     
  5. erderd

    erderd Newbie

    Joined:
    Oct 3, 2009
    Messages:
    46
    Likes Received:
    14
    I'll give that a go.. thanks!
     
  6. d2ugsd

    d2ugsd Registered Member Premium Member

    Joined:
    Mar 16, 2008
    Messages:
    81
    Likes Received:
    36
    taskkil /IM firefox.exe and your browser will be closed.
     
  7. erderd

    erderd Newbie

    Joined:
    Oct 3, 2009
    Messages:
    46
    Likes Received:
    14
    I have that in my batch file, but it can't wait until my iMacro has finished - it needs to have a timer, which is awkward if my macros are taking different amounts of time.
     
  8. vlad102

    vlad102 Newbie

    Joined:
    May 23, 2011
    Messages:
    19
    Likes Received:
    7
    Have your macros write a file to your drive when finished. Only run taskkill IF that file exists, wait in a loop otherwise. Delete the file after running taskkill.
     
  9. koksmayu

    koksmayu Newbie

    Joined:
    Sep 6, 2011
    Messages:
    13
    Likes Received:
    1
    Home Page:
    u can try to find in script here
     
  10. erderd

    erderd Newbie

    Joined:
    Oct 3, 2009
    Messages:
    46
    Likes Received:
    14
    I like this solution.. I'll look into it.

    To everyone who's PM'd too, thank you so much. It's said so much here that it's almost a cliche, but the knowledge and willingness to help out here really amazes me.
     
  11. bulldawg88

    bulldawg88 Junior Member

    Joined:
    Jan 13, 2012
    Messages:
    167
    Likes Received:
    106
    Location:
    San Diego, CA
    Did you end up getting the script? If not, don't pay someone $5 for that. I'll help you for free.