Jump to content

What the heck am I missing?


Recommended Posts

Hello,

I am a relative newbie to Auto IT. I was tasked to develop automation for a proprietary software we used as a CRM. 

As with a lot of people out there I am now working from home via GoToMyPC. My script worked yesterday. Now it doesn't work past my blocks that create directories for moving old files.

Can anyone help?

Here is a sample of my code. It's nothing fancy but the process doesn't get past the first mouseclick function. What am I missing?

#include <Array.au3>
#include <AutoItConstants.au3>
#include <File.au3>
#include <WinAPIShPath.au3>
#include <FileConstants.au3>
#include <Date.au3>

;creates path to move last MtD files
DirCreate("creates directory")
DirCreate("creates directory")
DirCreate("creates directory")
DirCreate("creates directory")
DirCreate("creates directory")
DirCreate("creates directory")
DirCreate("creates directory")
DirCreate("creates directory")

FileMove("moves file")
FileMove("moves file")
FileMove("moves file")
FileMove("moves file")
FileMove("moves file")
FileMove("moves file")
FileMove("moves file")
Filemove("moves file")

;starts process for first comprehensive report
MouseClick($MOUSE_CLICK_LEFT, 36, 132 ,2)

 

Link to comment
Share on other sites

Put some error checks after each statement, so you know what is going on.  Check return value and @error.  ConsoleWrite them.  Post Scite console if you don't find anything...

Link to comment
Share on other sites

Thanks! Filemove has been working as expected for me in the block I posted, it's everything afterwards that has all of a sudden stopped. 

I'm on GoToMyPC due to working from home via the virus crisis...but it worked yesterday. I haven't found any indication it's experiencing any kind of error yet...but I do need to put more handling in to make sure. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...